From d8fd6d05a38279098fb8bb207d56cbd8228bdf64 Mon Sep 17 00:00:00 2001 From: whyisjake Date: Tue, 28 Jul 2020 18:28:06 +0000 Subject: [PATCH] Upgrade/Install: Swap `auto-update-supported` to `update-supported` in update checks. Ensures backwards compatability with external updaters. See #50280. Props everyone-in-the-core-updates-channel. Built from https://develop.svn.wordpress.org/trunk@48678 git-svn-id: http://core.svn.wordpress.org/trunk@48440 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-plugins-list-table.php | 10 +++++----- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index 5041911b33..eb33550d88 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -203,11 +203,11 @@ class WP_Plugins_List_Table extends WP_List_Table { foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) { // Extra info if known. array_merge() ensures $plugin_data has precedence if keys collide. if ( isset( $plugin_info->response[ $plugin_file ] ) ) { - $plugin_data = array_merge( (array) $plugin_info->response[ $plugin_file ], array( 'auto-update-supported' => true ), $plugin_data ); + $plugin_data = array_merge( (array) $plugin_info->response[ $plugin_file ], array( 'update-supported' => true ), $plugin_data ); } elseif ( isset( $plugin_info->no_update[ $plugin_file ] ) ) { - $plugin_data = array_merge( (array) $plugin_info->no_update[ $plugin_file ], array( 'auto-update-supported' => true ), $plugin_data ); - } elseif ( empty( $plugin_data['auto-update-supported'] ) ) { - $plugin_data['auto-update-supported'] = false; + $plugin_data = array_merge( (array) $plugin_info->no_update[ $plugin_file ], array( 'update-supported' => true ), $plugin_data ); + } elseif ( empty( $plugin_data['update-supported'] ) ) { + $plugin_data['update-supported'] = false; } /* @@ -1094,7 +1094,7 @@ class WP_Plugins_List_Table extends WP_List_Table { } $action = 'unavailable'; $time_class = ' hidden'; - } elseif ( ! $plugin_data['auto-update-supported'] ) { + } elseif ( ! $plugin_data['update-supported'] ) { $text = ''; $action = 'unavailable'; $time_class = ' hidden'; diff --git a/wp-includes/version.php b/wp-includes/version.php index fe8d59e57b..455bd2b64a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-beta4-48677'; +$wp_version = '5.5-beta4-48678'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.