Site Health: Use correct variable when checking PHP requirements for a plugin update in `WP_Plugins_List_Table::single_row()`.

Props diddledan, sharaz, vaishalipanchal, afragen.
Merges [45750] to the 5.2 branch.
Fixes #47835.
Built from https://develop.svn.wordpress.org/branches/5.2@45833


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-08-19 04:09:52 +00:00
parent 7ab695d1d6
commit 7b82b8fd18
2 changed files with 2 additions and 2 deletions

View File

@ -761,7 +761,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
} }
$requires_php = isset( $plugin['requires_php'] ) ? $plugin['requires_php'] : null; $requires_php = isset( $plugin_data['requires_php'] ) ? $plugin_data['requires_php'] : null;
$compatible_php = is_php_version_compatible( $requires_php ); $compatible_php = is_php_version_compatible( $requires_php );
$class = $is_active ? 'active' : 'inactive'; $class = $is_active ? 'active' : 'inactive';
$checkbox_id = 'checkbox_' . md5( $plugin_data['Name'] ); $checkbox_id = 'checkbox_' . md5( $plugin_data['Name'] );

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.2.3-alpha-45832'; $wp_version = '5.2.3-alpha-45833';
/** /**
* 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.