Skip to content
Permalink
Browse files

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.

git-svn-id: https://develop.svn.wordpress.org/branches/5.2@45833 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 19, 2019
1 parent 361af8b commit 7fbb5e98883268290c5010c59871903476c3124d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wp-admin/includes/class-wp-plugins-list-table.php
@@ -761,7 +761,7 @@ public function single_row( $item ) {
}
$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'] );

0 comments on commit 7fbb5e9

Please sign in to comment.
You can’t perform that action at this time.