Making WordPress.org

Opened 4 months ago

Last modified 4 months ago

#4621 new enhancement

Add support for 'Tested up to' header in the main plugin file

Reported by: SergeyBiryukov Owned by:
Milestone: Priority: normal
Component: Plugin Directory Keywords:



  • #2952 added support for Requires PHP plugin header in readme.txt.
  • #4514 added support for Requires at least and Requires PHP headers in the main plugin file.

Since [9050], the preferred placement for Requires at least and Requires PHP headers is the plugin's main file, rather than readme.txt.

(Per discussion with @Otto42 in #WP46938, WordPress core should read the headers it needs from the plugin's PHP file, while the readme.txt is intended for the WordPress.org directory.)

It occurred to me that the Tested up to header still can only be defined in readme.txt. Even though core doesn't read it from the file at the moment, I think it makes sense to be able to define all three headers (Requires at least, Tested up to, Requires PHP) in the same place, for consistency.

Otherwise, developers who define them in the plugin's main file could be confused as to why two of them work as expected, but the third one does not.

Change History (1)

This ticket was mentioned in Slack in #meta by tellyworth. View the logs.

4 months ago

Note: See TracTickets for help on using tickets.