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.
Fixes #47835.

git-svn-id: https://develop.svn.wordpress.org/trunk@45750 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 5, 2019
1 parent 7110d55 commit 3f2e2651747d0e87727b9c0e575296c364cc8974
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 3f2e265

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