Skip to content

Ensure WP_CLI_ROOT is defined before accessing it#5697

Merged
danielbachhuber merged 1 commit intomasterfrom
fix/undefined-wp-cli-root
Nov 1, 2022
Merged

Ensure WP_CLI_ROOT is defined before accessing it#5697
danielbachhuber merged 1 commit intomasterfrom
fix/undefined-wp-cli-root

Conversation

@danielbachhuber
Copy link
Member

The PHP utilities can be used by the test framework, etc. without directly loading WP-CLI.

Introduced by #5672

Fixes wp-cli/wp-cli-tests#154

@danielbachhuber danielbachhuber merged commit fad5944 into master Nov 1, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix/undefined-wp-cli-root branch November 1, 2022 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using the bundled PHP web server step triggers Use of undefined constant WP_CLI_ROOT warning

2 participants