From 355152a5993abd33590c15cb3e5992838d4a486d Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Tue, 28 Jul 2020 18:26:58 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@48678 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-plugins-list-table.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/includes/class-wp-plugins-list-table.php b/src/wp-admin/includes/class-wp-plugins-list-table.php index 5041911b33..eb33550d88 100644 --- a/src/wp-admin/includes/class-wp-plugins-list-table.php +++ b/src/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';