[wp-trac] [WordPress Trac] #25928: Remove the theme information from style.css and add a theme manifest file

WordPress Trac noreply at wordpress.org
Tue Nov 12 17:31:33 UTC 2013


#25928: Remove the theme information from style.css and add a theme manifest file
-----------------------------+-----------------------------
 Reporter:  jolyonruss       |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Themes           |    Version:  3.7.1
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 Currently the metadata related to a theme is store in a comment at the top
 of style.css.

 I argue this is not a clean separation of concerns, yes .css files can
 contain semantic information to help the reader navigate the file, but
 using it to store metadata is bad practice.

 I propose creating a theme manifest file that sits at the root of the
 theme directory and contains all the metadata related to the theme that's
 currently at the top of style.css, things like the name, author, etc. but
 it could also contain a file list for the theme with a few lines about the
 files usage.

 Externalising the metadata and adding more contextual information will
 greatly improve developers ability to hack on top of others themes and
 understand their rationale for certain decisions.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25928>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list