| @@ -43,9 +43,10 @@ | ||
| 43 | 43 | // Register metaboxes |
| 44 | 44 | require_once( WINP_PLUGIN_DIR . '/admin/metaboxes/base-options.php' ); |
| 45 | 45 | WINP_Helper::register_factory_metaboxes( new WINP_BaseOptionsMetaBox( $plugin ), WINP_SNIPPETS_POST_TYPE, $plugin ); |
| 46 | 46 | |
| 47 | - if ( ( defined( 'FACTORY_ADVERTS_DEBUG' ) && FACTORY_ADVERTS_DEBUG ) || ! WINP_Plugin::app()->premium->is_activate() ) { | |
| 47 | + //if ( current_user_can( 'install_plugins' ) && ! is_plugin_active( 'robin-image-optimizer/robin-image-optimizer.php' ) ) { | |
| 48 | + if ( ! WINP_Plugin::app()->premium->is_activate() ) { | |
| 48 | 49 | require_once( WINP_PLUGIN_DIR . '/admin/metaboxes/info.php' ); |
| 49 | 50 | WINP_Helper::register_factory_metaboxes( new WINP_InfoMetaBox( $plugin ), WINP_SNIPPETS_POST_TYPE, $plugin ); |
| 50 | 51 | } |
| 51 | 52 | |
| @@ -65,9 +66,9 @@ | ||
| 65 | 66 | if ( is_null( $about_page_viewed ) ) { |
| 66 | 67 | if ( WINP_Helper::is_need_show_about_page() ) { |
| 67 | 68 | try { |
| 68 | 69 | $redirect_url = ''; |
| 69 | - if ( class_exists( 'Wbcr_FactoryPages421' ) ) { | |
| 70 | + if ( class_exists( 'Wbcr_FactoryPages419' ) ) { | |
| 70 | 71 | $redirect_url = WINP_Plugin::app()->getPluginPageUrl( 'about', [ 'wbcr_inp_about_page_viewed' => 1 ] ); |
| 71 | 72 | } |
| 72 | 73 | if ( $redirect_url ) { |
| 73 | 74 | wp_safe_redirect( $redirect_url ); |