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