[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 Mar 22 00:36:36 UTC 2019


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

Comment (by SergeyBiryukov):

 In [changeset:"44978" 44978]:
 {{{
 #!CommitTicketReference repository="" revision="44978"
 Plugins: Block plugin activation if it requires a higher version of PHP or
 WordPress.

 Introduce `validate_plugin_requirements()` for validating a plugin's
 WordPress and PHP version requirements.

 Introduce `wp_is_wp_compatible()` and `wp_is_php_compatible()` for
 checking compatibility with the current WordPress or PHP version.

 Props afragen, joyously, DrewAPicture, TimothyBlynJacobs, desrosj,
 flixos90, SergeyBiryukov.
 See #43992.
 }}}

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


More information about the wp-trac mailing list