From 6352e53ed72aa98eef473ef156991f2c8af42183 Mon Sep 17 00:00:00 2001 From: Ivan Ottinger <25105483+ivan-ottinger@users.noreply.github.com> Date: Fri, 17 May 2024 13:20:27 +0200 Subject: [PATCH] Remove changes needed for testing --- includes/class-wc-calypso-bridge-setup.php | 5 ----- .../notes/class-wc-calypso-bridge-free-trial-welcome.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/includes/class-wc-calypso-bridge-setup.php b/includes/class-wc-calypso-bridge-setup.php index 16d1866d..5429c579 100644 --- a/includes/class-wc-calypso-bridge-setup.php +++ b/includes/class-wc-calypso-bridge-setup.php @@ -127,11 +127,6 @@ private function __construct() { $wp_admin_bar->remove_menu( 'ab-new-post' ); }, PHP_INT_MAX ); - - add_action( 'wp_before_admin_bar_render', function () { - include_once WC_CALYPSO_BRIDGE_PLUGIN_PATH . '/includes/notes/class-wc-calypso-bridge-free-trial-welcome.php'; - WC_Calypso_Bridge_Free_Trial_Welcome_Note::possibly_add_note(); - }, PHP_INT_MAX ); } } diff --git a/includes/notes/class-wc-calypso-bridge-free-trial-welcome.php b/includes/notes/class-wc-calypso-bridge-free-trial-welcome.php index 9167114c..6ffb34d0 100644 --- a/includes/notes/class-wc-calypso-bridge-free-trial-welcome.php +++ b/includes/notes/class-wc-calypso-bridge-free-trial-welcome.php @@ -70,7 +70,7 @@ public static function get_note() { */ public static function can_be_added() { // Temporarily disable Welcome note; context: p1715940056147799/1715859215.173039-slack-C06RQ4EQ7V2. - return true; + return false; $note = self::get_note();