Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bail early on add_command(). #4126

Merged
merged 1 commit into from Jun 2, 2017
Merged

Conversation

schlessera
Copy link
Member

As Composer will use a fixed require for any package files included in the Composer autoloader's "files" directive, we need to bail early in the WP_CLI::add_command() method so that WP-CLI is not executed from web-requests where it was included in the same composer.json file than the WP code itself.

See #4124

As Composer will use a fixed require for any package files included in the Composer autoloader's `"files"` directive, we need to bail early in the `WP_CLI::add_command()` method so that WP-CLI is not executed from web-requests where it was included in the same `composer.json` file than the WP code itself.

See #4124
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.

None yet

2 participants