diff --git a/includes/class-wc-calypso-bridge-coming-soon.php b/includes/class-wc-calypso-bridge-coming-soon.php index 56c2cacf..2fe951ce 100644 --- a/includes/class-wc-calypso-bridge-coming-soon.php +++ b/includes/class-wc-calypso-bridge-coming-soon.php @@ -6,7 +6,7 @@ * Class WC_Calypso_Bridge_Coming_Soon * * @since 2.6.0 - * @version 2.6.0 + * @version x.x.x * * Handle Coming Soon mode. */ @@ -40,7 +40,7 @@ public function __construct() { add_filter( 'pre_option_woocommerce_coming_soon', array( $this, 'override_option_woocommerce_coming_soon' ) ); add_filter( 'pre_update_option_woocommerce_coming_soon', array( $this, 'override_update_woocommerce_coming_soon' ), 10, 2 ); // Admin bar menu is not only shown in the admin area but also in the front end when the admin user is logged in. - add_action( 'admin_bar_menu', array( $this, 'possibly_remove_site_visibility_badge' ), 32 ); + add_action( 'admin_bar_menu', array( $this, 'remove_site_visibility_badge' ), 32 ); if ( is_admin() ) { add_filter( 'plugins_loaded', array( $this, 'maybe_add_admin_notice' ) ); @@ -208,9 +208,8 @@ function () use ( $message, $notice_type ) { * @param WP_Admin_Bar $wp_admin_bar The admin bar instance. * @return void */ - public function possibly_remove_site_visibility_badge( $wp_admin_bar ) { - // TODO: Remove feature check once the site visibility badge is behind feature flag in core. - if ( wc_calypso_bridge_is_trial_plan() || ! $this->is_feature_enabled() ) { + public function remove_site_visibility_badge( $wp_admin_bar ) { + if ( $wp_admin_bar && $this->is_feature_enabled() ) { $wp_admin_bar->remove_node( 'woocommerce-site-visibility-badge' ); } } diff --git a/includes/class-wc-calypso-bridge-themes-setup.php b/includes/class-wc-calypso-bridge-themes-setup.php index a059b267..adc0b5e7 100644 --- a/includes/class-wc-calypso-bridge-themes-setup.php +++ b/includes/class-wc-calypso-bridge-themes-setup.php @@ -102,7 +102,6 @@ public function set_theme_default_values() { set_theme_mod( 'sp_homepage_top_rated', false ); // Removes Top Rated Products area from starter content. set_theme_mod( 'sp_homepage_on_sale', false ); // Removes On Sale Products area from starter content. set_theme_mod( 'sp_homepage_best_sellers', false ); // Removes Best Sellers Products area from starter content. - update_option( 'woocommerce_demo_store', 'yes' ); // enables demo store notice. // Force Fresh Site. update_option( 'fresh_site', true ); // Save option that says the setup has been run already. diff --git a/readme.txt b/readme.txt index a6d7536e..9adada0b 100644 --- a/readme.txt +++ b/readme.txt @@ -25,6 +25,8 @@ This section describes how to install the plugin and get it working. = Unreleased = * Re-enable Site visibility settings tab for free trial plans #1512 * Remove launch-your-store feature flag override #1521 +* Remove LYS badge from WPCOM sites #1519 +* Remove setting demo store option on ecommerce sites by default #1518 = 2.6.0 = * Hide WPCOM's coming soon page when the launch-your-store feature flag is enabled #1500