Plugins: Avoid a PHP notice if the `update-supported` key in plugin data is not set.
Props sanzeeb3. Merges [48820] to the 5.5 branch. Fixes #51052. Built from https://develop.svn.wordpress.org/branches/5.5@48821 git-svn-id: http://core.svn.wordpress.org/branches/5.5@48583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ea3c57f303
commit
5ddabef439
|
@ -1094,14 +1094,14 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
|
||||
if ( isset( $plugin_data['auto-update-forced'] ) ) {
|
||||
if ( $plugin_data['auto-update-forced'] ) {
|
||||
// Forced on
|
||||
// Forced on.
|
||||
$text = __( 'Auto-updates enabled' );
|
||||
} else {
|
||||
$text = __( 'Auto-updates disabled' );
|
||||
}
|
||||
$action = 'unavailable';
|
||||
$time_class = ' hidden';
|
||||
} elseif ( ! $plugin_data['update-supported'] ) {
|
||||
} elseif ( empty( $plugin_data['update-supported'] ) ) {
|
||||
$text = '';
|
||||
$action = 'unavailable';
|
||||
$time_class = ' hidden';
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5.1-alpha-48819';
|
||||
$wp_version = '5.5.1-alpha-48821';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue