[wp-trac] [WordPress Trac] #47835: PHP requirement always set to null for plugins
WordPress Trac
noreply at wordpress.org
Mon Aug 5 00:02:57 UTC 2019
#47835: PHP requirement always set to null for plugins
----------------------------+-----------------------------
Reporter: diddledan | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 5.2
Severity: minor | Keywords:
Focuses: |
----------------------------+-----------------------------
The file class-wp-plugins-list-table.php line 764
(https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes
/class-wp-plugins-list-table.php#L764) references a variable called
`$plugin`. This variable is not defined anywhere in the function so the
test will always return false, meaning that `$requires_php` will always be
set to `null`:
{{{#!php
$requires_php = isset( $plugin['requires_php'] ) ?
$plugin['requires_php'] : null;
}}}
This line was introduced in version 5.2.0
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47835>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list