[wp-trac] [WordPress Trac] #43992: Prevent activation of a plugin if its required PHP version is too high

WordPress Trac noreply at wordpress.org
Fri Jan 25 22:34:53 UTC 2019


#43992: Prevent activation of a plugin if its required PHP version is too high
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  (none)
     Type:  task (blessed)                       |      Status:  new
 Priority:  normal                               |   Milestone:  5.2
Component:  Plugins                              |     Version:
 Severity:  major                                |  Resolution:
 Keywords:  needs-unit-tests servehappy dev-     |     Focuses:
  feedback has-patch needs-testing               |
-------------------------------------------------+-------------------------

Comment (by joyously):

 > `get_file_data()` will not correctly parse a readme.txt file.

 I bet it will, and it would be better than adding a lot of extra code. It
 takes parameters for the file to use and the headers to look for. What's
 the big deal? The format is the same. Did you try it?

 But I notice that this diff adds those headers to the defaults in
 `get_plugin_data()`, so are they just in the readme or in the plugin file
 also?

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


More information about the wp-trac mailing list