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

Props diddledan, sharaz, vaishalipanchal.
Fixes #47835.

git-svn-id: https://develop.svn.wordpress.org/trunk@45750 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-08-05 10:57:04 +00:00
parent 7110d5507f
commit 3f2e265174

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 );
$class = $is_active ? 'active' : 'inactive';
$checkbox_id = 'checkbox_' . md5( $plugin_data['Name'] );