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
This commit is contained in:
whyisjake 2020-07-28 18:28:06 +00:00
parent 6209a40fd9
commit d8fd6d05a3
2 changed files with 6 additions and 6 deletions

View File

@ -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';

View File

@ -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.