Make WordPress Core

Changeset 45750


Ignore:
Timestamp:
08/05/2019 10:57:04 AM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r45185 r45750  
    762762        }
    763763
    764         $requires_php   = isset( $plugin['requires_php'] ) ? $plugin['requires_php'] : null;
     764        $requires_php   = isset( $plugin_data['requires_php'] ) ? $plugin_data['requires_php'] : null;
    765765        $compatible_php = is_php_version_compatible( $requires_php );
    766766        $class          = $is_active ? 'active' : 'inactive';
Note: See TracChangeset for help on using the changeset viewer.