#4514 closed enhancement (fixed)
Add support for 'Requires at least' and 'Requires PHP' headers in the main plugin file
Reported by: | SergeyBiryukov | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Plugin Directory | Keywords: | |
Cc: |
Description (last modified by )
Background: #2952 added support for Requires PHP
plugin header.
At the time, it made sense to have it defined in the same place as Requires at least
, which only exists in readme.txt
.
Per discussion with @Otto42 in #WP46938, a decision was made for WP core to read both Requires at least
and Requires PHP
headers from the plugin's main PHP file as well, and give precedence to those instead of the ones from the readme.txt
file.
For consistency, Plugin Directory should do the same.
Change History (7)
#3
@
6 years ago
Since we kinda want to have the same functionality in themes, how does this affect the themes development?
Should we make a new rule about this in the theme review handbook and themes development handbook to include this in the readme/functions.php file of the theme?
#4
@
4 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
As per suggestion by @ocean90 I am reopening this because GlotPress needs to be updated for this as well:
In 9050: