| @@ -50,10 +50,14 @@ | ||
| 50 | 50 | add_action( 'admin_init', array( $this, 'setup_wizard' ) ); |
| 51 | 51 | add_action( 'admin_init', array( $this, 'hide_notices' ) ); |
| 52 | 52 | add_action( 'admin_notices', array( $this, 'show_setup_wizard' ) ); |
| 53 | 53 | add_action( 'woocommerce_installed', array( $this, 'disable_woo_setup_redirect' ) ); |
| 54 | - // We are hiding admin bar intentionally for setup wizard. | |
| 55 | - add_filter( 'show_admin_bar', '__return_false', 1 ); //phpcs:ignore WordPressVIPMinimum.UserExperience.AdminBarRemoval.RemovalDetected | |
| 54 | + // We are hiding admin bar intentionally, only on the setup wizard page. This | |
| 55 | + // constructor runs on every is_admin() request, so an unscoped filter removed | |
| 56 | + // the toolbar from the whole of wp-admin. | |
| 57 | + if ( isset( $_GET['page'] ) && 'cartflow-setup' === $_GET['page'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 58 | + add_filter( 'show_admin_bar', '__return_false', 1 ); //phpcs:ignore WordPressVIPMinimum.UserExperience.AdminBarRemoval.RemovalDetected, WordPressVIPMinimum.UserExperience.AdminBarRemoval.HidingDetected | |
| 59 | + } | |
| 56 | 60 | |
| 57 | 61 | add_action( 'init', array( $this, 'load_scripts' ) ); |
| 58 | 62 | add_action( 'admin_print_styles', array( $this, 'load_admin_media_styles' ) ); |
| 59 | 63 | |
| @@ -314,9 +318,9 @@ | ||
| 314 | 318 | 'slug' => 'woocommerce', |
| 315 | 319 | 'status' => $this->get_plugin_status( 'woocommerce/woocommerce.php' ), |
| 316 | 320 | ), |
| 317 | 321 | array( |
| 318 | - 'name' => 'Cart Abandonment', | |
| 322 | + 'name' => 'Cart Abandonment Recovery for WooCommerce', | |
| 319 | 323 | 'slug' => 'woo-cart-abandonment-recovery', |
| 320 | 324 | 'status' => $this->get_plugin_status( 'woo-cart-abandonment-recovery/woo-cart-abandonment-recovery.php' ), |
| 321 | 325 | ), |
| 322 | 326 | array( |