Upgrade: Fix the disable_autoupdate flag logic.
In #50824 support was added for a package to include a disable_autoupdate flag to indicate that the plugin/theme should not be auto-updated even if a user had opted-in via the WP-Admin UI. However, the logic implementing the flag was inverted. This commit repairs the logic. If a package has disable_autoupdate set, then it should not be auto-updated. Props amisiewicz. Fixes #52796. Built from https://develop.svn.wordpress.org/trunk@58285 git-svn-id: http://core.svn.wordpress.org/trunk@57745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d4ce786b2e
commit
0d72c5dd46
|
@ -233,7 +233,7 @@ class WP_Automatic_Updater {
|
||||||
|
|
||||||
// If the `disable_autoupdate` flag is set, override any user-choice, but allow filters.
|
// If the `disable_autoupdate` flag is set, override any user-choice, but allow filters.
|
||||||
if ( ! empty( $item->disable_autoupdate ) ) {
|
if ( ! empty( $item->disable_autoupdate ) ) {
|
||||||
$update = $item->disable_autoupdate;
|
$update = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.6-alpha-58284';
|
$wp_version = '6.6-alpha-58285';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue