[wp-trac] [WordPress Trac] #47835: PHP requirement always set to null for plugins
WordPress Trac
noreply at wordpress.org
Mon Aug 5 10:52:03 UTC 2019
#47835: PHP requirement always set to null for plugins
--------------------------+---------------------
Reporter: diddledan | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.3
Component: Site Health | Version: 5.2
Severity: minor | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Comment (by SergeyBiryukov):
> The problem with this is that `$plugin_data` refers to the currently
installed version of the plugin
Nevermind, I missed that `$plugin_data` is [source:tags/5.2.2/src/wp-
admin/includes/class-wp-plugins-list-table.php?marks=182,187#L176 merged
with the plugin API response] earlier.
`$plugin_data['RequiresPHP']` does indeed refer to the header from the
currently installed plugin version, however `$plugin_data['requires_php']`
refers to the available update.
[attachment:"47835.diff"] is good to go.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47835#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list