[wp-trac] [WordPress Trac] #44592: Add support for required WP and PHP versions to themes

WordPress Trac noreply at wordpress.org
Tue Jul 17 10:51:30 UTC 2018


#44592: Add support for required WP and PHP versions to themes
-------------------------+---------------------
 Reporter:  flixos90     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.9.9
Component:  Themes       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------
Changes (by flixos90):

 * keywords:  needs-patch => has-patch


Comment:

 [attachment:"44592.diff"] adds support for a `Requires` header (for
 required WP version) and a `Requires PHP` header (for required PHP
 version) to `WP_Theme`. While we could go with `Requires WP`, I thought it
 would make sense to align the names with the names of the plugin headers,
 so people can remember them easily for both plugins and themes.

 Going forward though, let's have the discussion on header names in the
 meta ticket https://meta.trac.wordpress.org/ticket/3718, and adjust the
 patch here accordingly as necessary.

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


More information about the wp-trac mailing list