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

Provide clear error message when plugin fails PHP requirement #253

Merged
merged 10 commits into from Sep 29, 2020

Conversation

schlessera
Copy link
Member

If you try to activate a plugin that doesn't meet the minimum PHP requirements, WP-CLI now tells you the specific reason why it is failing, instead of giving a generic error message and then showing a success message as well.

Fixes #251

@schlessera schlessera requested a review from a team as a code owner August 26, 2020 15:12
@schlessera schlessera added this to the 2.0.12 milestone Aug 26, 2020
src/Plugin_Command.php Outdated Show resolved Hide resolved
@schlessera schlessera merged commit ed5cd65 into master Sep 29, 2020
@schlessera schlessera deleted the fix/251-activate-php-requirements branch September 29, 2020 05:33
@enrico-atzeni
Copy link

Does this also apply to plugins updates made with
wp plugin update <plugin>
in case new version requires a greater PHP version than installed one?

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.

False success and missing explanation when plugin PHP requirement isn't met
3 participants