[wp-trac] [WordPress Trac] #46938: Add Requires WP and Requires PHP headers for plugin compatibility tests

WordPress Trac noreply at wordpress.org
Tue Jun 18 03:24:02 UTC 2019


#46938: Add Requires WP and Requires PHP headers for plugin compatibility tests
-------------------------------------------------+-------------------------
 Reporter:  afragen                              |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.3
Component:  Plugins                              |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  servehappy has-patch needs-testing   |     Focuses:
  commit                                         |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45546" 45546]:
 {{{
 #!CommitTicketReference repository="" revision="45546"
 Plugins: When validating plugin's WordPress and PHP requirements, check
 for `Requires at least` and `Requires PHP` headers in the plugin's main
 PHP file.

 This allows for blocking plugin activation if it requires a higher version
 of PHP or WordPress, and does not have a `readme.txt` file.

 If the headers are defined in both `readme.txt` and the main plugin file,
 precedence is given to the plugin file.

 Props afragen, Otto42, Ipstenu.
 Fixes #46938.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46938#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list