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

WordPress Trac noreply at wordpress.org
Sun Jan 6 21:30:17 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.1
Component:  Plugins                              |     Version:
 Severity:  major                                |  Resolution:
 Keywords:  needs-unit-tests servehappy dev-     |     Focuses:
  feedback has-patch                             |
-------------------------------------------------+-------------------------

Comment (by afragen):

 > A difference between other work and this one would be that here, we need
 to read the required PHP version from the plugin readme file directly
 instead from the w.org plugins API.

 Before we can do this some sort of stripped down version of the dot org
 {{{class-parser.php}}} will need to be included with core.

 Once added it should be simple to swap the internals of
 {{{get_plugin_validation_data()}}} to use the new local parser and parse
 the local {{{readme.txt}}}.

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


More information about the wp-trac mailing list