Skip to content

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Jul 24, 2025

Follows up in #212. Accounts for the WordPress Playground runtime, where the sapi name is cli and the $wpdb variable may not be available.

Testing instructions

Just confirm it doesn't break CI. We don't have an easy way of running this PR in Playground (simply installing the plugin will trigger different code paths).

@adamziel adamziel added the enhancement New feature or request label Jul 24, 2025
@adamziel adamziel merged commit 783a875 into develop Jul 24, 2025
12 checks passed
adamziel added a commit that referenced this pull request Jul 24, 2025
Defining QM_TESTS in Playground is enough. See #215
adamziel added a commit that referenced this pull request Jul 24, 2025
#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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant