From cf39a894680e5df04f059813dfe0d4d5ef2ed3c0 Mon Sep 17 00:00:00 2001 From: Torben Lundsgaard Date: Sat, 5 Oct 2024 16:36:33 +0200 Subject: [PATCH] Fix environment type --- src/Admin/Suggestions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Admin/Suggestions.php b/src/Admin/Suggestions.php index bc2a722..898c1d8 100644 --- a/src/Admin/Suggestions.php +++ b/src/Admin/Suggestions.php @@ -110,7 +110,7 @@ public function suggest_inspector_deactivation(): void { $notification_id = 'gtmkit-event-inspector'; - if ( $this->options->get( 'general', 'event_inspector' ) === false || ( defined( 'WP_ENVIRONMENT_TYPE' ) && WP_ENVIRONMENT_TYPE === 'xlocal' ) ) { + if ( $this->options->get( 'general', 'event_inspector' ) === false || ( defined( 'WP_ENVIRONMENT_TYPE' ) && WP_ENVIRONMENT_TYPE === 'local' ) ) { $this->notifications_handler->remove_notification_by_id( $notification_id ); return; }