From fccf73f43362b2da6ade66f95735470177bb8f69 Mon Sep 17 00:00:00 2001 From: Torben Lundsgaard Date: Mon, 28 Oct 2024 16:21:58 +0100 Subject: [PATCH] Fix suggestion --- 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 0a60463..78fa9af 100644 --- a/src/Admin/Suggestions.php +++ b/src/Admin/Suggestions.php @@ -156,7 +156,7 @@ public function suggest_log_deactivation(): void { $console_log = $this->options->get( 'general', 'console_log' ); $debug_og = $this->options->get( 'general', 'debug_log' ); - if ( ( ! $console_log && $debug_og ) || ( defined( 'WP_ENVIRONMENT_TYPE' ) && WP_ENVIRONMENT_TYPE === 'local' ) ) { + if ( ( ! $console_log && ! $debug_og ) || ( defined( 'WP_ENVIRONMENT_TYPE' ) && WP_ENVIRONMENT_TYPE === 'local' ) ) { $this->notifications_handler->remove_notification_by_id( $notification_id ); return; }