From 8b3a813e1a852004da166b37450a85b4ad6295d0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 18 Aug 2020 20:38:09 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-plugins-list-table.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index 40223b6d47..e487e32cfb 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -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'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 3dfa96e17f..36afcd1643 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.