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
wp plugin update-all
enters maintenance mode even when no updates are available
#491
Comments
WP-CLI just uses the bulk upgrader from WordPress, so you should file a bug upstream: |
Thanks for the quick reply. Upon further investigation, this only occurs when using WordPress Multisite:
Normal WordPress simply outputs:
I agree though @scribu, sounds like a fix is needed in WordPress core. |
@scribu, this commit is one way to fix this in wp-cli. The other would be for me to submit a patch for WordPress core that adds checks to Plugin_Upgrader::bulk_upgrade() and Theme_Upgrader::bulk_upgrade() only act if the array passed to them isn't empty. |
Please do that anyway, regardless of what WP-CLI does. |
Core bug report: http://core.trac.wordpress.org/ticket/24496 Thanks @scribu. |
This bug has now been fixed in core and will be included in WordPress 3.7. |
When executing
wp plugin update-all
on a site with no plugin updates, the output is as follows:Enabling Maintenance mode... Disabling Maintenance mode... Success: Updated 0/0 plugins.
I think ideally we shouldn't enter maintenance mode at all if no updates are available.
I suspect theme and possibly core updates might need the same enhancement as well.
The text was updated successfully, but these errors were encountered: