From 0d72c5dd46dd99ea0e5001f0cc7442f49ef38b1a Mon Sep 17 00:00:00 2001 From: TimothyBlynJacobs Date: Sun, 2 Jun 2024 21:35:12 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-automatic-updater.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-automatic-updater.php b/wp-admin/includes/class-wp-automatic-updater.php index f970016416..d4ac511438 100644 --- a/wp-admin/includes/class-wp-automatic-updater.php +++ b/wp-admin/includes/class-wp-automatic-updater.php @@ -233,7 +233,7 @@ class WP_Automatic_Updater { // If the `disable_autoupdate` flag is set, override any user-choice, but allow filters. if ( ! empty( $item->disable_autoupdate ) ) { - $update = $item->disable_autoupdate; + $update = false; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 5690839100..1bb5c89dc2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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.