WordPress.org

Make WordPress Core

Changeset 45833


Ignore:
Timestamp:
08/19/2019 04:08:48 AM (4 weeks 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, afragen.
Merges [45750] to the 5.2 branch.
Fixes #47835.

Location:
branches/5.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2

  • branches/5.2/src/wp-admin/includes/class-wp-plugins-list-table.php

    r45185 r45833  
    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.