Skip to content

Commit c5fd397

Browse files
authored
Revert the QM_RUN_IN_CLI constant (#216)
#215 added a `QM_RUN_IN_CLI` check to enable running Query Monitor with the CLI sapi (it's always `cli` in Playground). Turns out, QM_TESTS is enough and shouldn't have any side-effects (at least in the current release). Let's roll back `QM_RUN_IN_CLI`.
2 parents 783a875 + 6a237d2 commit c5fd397

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

integrations/query-monitor/boot.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
}
4040

4141
if ( 'cli' === php_sapi_name() && ! defined( 'QM_TESTS' ) ) {
42-
if ( ! defined( 'QM_RUN_IN_CLI' ) || ! QM_RUN_IN_CLI ) {
43-
return;
44-
}
42+
return;
4543
}
4644

4745
if ( defined( 'DOING_CRON' ) && DOING_CRON ) {

0 commit comments

Comments
 (0)