From 6a237d28206994134f96d03de85d500829dd4dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zieli=C5=84ski?= Date: Thu, 24 Jul 2025 18:21:06 +0200 Subject: [PATCH] Revert the QM_RUN_IN_CLI constant Defining QM_TESTS in Playground is enough. See https://github.com/WordPress/sqlite-database-integration/pull/215 --- integrations/query-monitor/boot.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/integrations/query-monitor/boot.php b/integrations/query-monitor/boot.php index 7e8ae300..83c42672 100644 --- a/integrations/query-monitor/boot.php +++ b/integrations/query-monitor/boot.php @@ -39,9 +39,7 @@ } if ( 'cli' === php_sapi_name() && ! defined( 'QM_TESTS' ) ) { - if ( ! defined( 'QM_RUN_IN_CLI' ) || ! QM_RUN_IN_CLI ) { - return; - } + return; } if ( defined( 'DOING_CRON' ) && DOING_CRON ) {