[wp-meta] [Making WordPress.org] #4621: Add support for 'Tested up to' header in the main plugin file

Making WordPress.org noreply at wordpress.org
Tue Jul 23 22:21:36 UTC 2019


#4621: Add support for 'Tested up to' header in the main plugin file
------------------------------+--------------------
 Reporter:  SergeyBiryukov    |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:
Component:  Plugin Directory  |   Keywords:
------------------------------+--------------------
 Background:
 * #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.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/4621>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list