[wp-trac] [WordPress Trac] #48515: [Theme compatibility] Changes to WP_Theme to add correct header data

WordPress Trac noreply at wordpress.org
Wed Nov 6 18:47:31 UTC 2019


#48515: [Theme compatibility] Changes to WP_Theme to add correct header data
------------------------------------------+------------------------------
 Reporter:  afragen                       |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Themes                        |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  has-patch dev-feedback early  |     Focuses:  administration
------------------------------------------+------------------------------

Comment (by afragen):

 Replying to [comment:5 joyously]:
 > > it was thought to future proof we should give precedence to readme.txt
 > style.css
 >
 > The trick is that the readme.txt is for the Theme Repository. So not all
 themes will have readme.txt. Core reads style.css, which must exist, so it
 should have priority. Anything missing from style.css can be filled in
 from readme.txt if it exists.

 This was how I originally did this, but was convinced in Slack to change
 the precedence order. It's a simple change.

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


More information about the wp-trac mailing list