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; }