#50824 closed enhancement (fixed)
Allow for WordPress.org to remotely disable auto-updates for plugins/themes
Reported by: | dd32 | Owned by: | whyisjake |
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | Upgrade/Install | Keywords: | has-patch commit dev-reviewed |
Focuses: | Cc: |
Description
The new auto-update UI is great, but it would benefit from having a way to remotely disable the auto-update for a plugin/theme.
It'll open the possibility for WordPress.org to control the rollout of an auto-update, for example, auto-updating everyone 1-24hrs after release rather than immediately to allow for any major bugs to be discovered.
Ideally it'll never need to be used for it, but it'll also protect WordPress users by allowing us to disable it for a plugin or entirely if there are any unexpected behaviours from it.
The attached PR allows for the WordPress.org API response to include a disable_autoupdate
flag which will disable it for that item, it'll not affect the UI and hopefully will never be needed (aside from the example use-case of A/B smoke testing or the like).
For more information, I discussed it a little on Slack: https://wordpress.slack.com/archives/CULBN711P/p1596156154382900
I'm assigning this to the 5.5 milestone out of caution.
Change History (12)
This ticket was mentioned in PR #444 on WordPress/wordpress-develop by dd32.
4 years ago
#1
- Keywords has-patch added
This ticket was mentioned in Slack in #core by whyisjake. View the logs.
4 years ago
#5
@
4 years ago
- Owner set to whyisjake
- Resolution set to fixed
- Status changed from new to closed
In 48701:
#8
@
4 years ago
I might be missing something, but it seems like this code does the opposite. If disable_autoupdate
is set to true
, then it forces the update to be enabled. The code should read as.
// If the `disable_autoupdate` flag is set, override any user-choice, but allow filters.
if ( ! empty( $item->disable_autoupdate ) ) {
$update = ! $item->disable_autoupdate;
}
Notice the negation.
#9
@
4 years ago
I think it's correct. If $item->disable_autoupdate
is true
then $update
gets set to false
, which disables the update.
Trac ticket: https://core.trac.wordpress.org/ticket/50824