[wp-trac] [WordPress Trac] #18204: Move theme def to index.php

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 22 00:20:37 UTC 2011


#18204: Move theme def to index.php
-------------------------+-----------------------------
 Reporter:  kingjeffrey  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 I propose moving the comment defining the theme from style.css to
 index.php.

 This would allow theme authors to:
 * name their stylesheets according to whatever convention they prefer
 (perhaps with a version number in the filename to avoid caching issues),
 or
 * to keep all css files in a dedicated directory (as I prefer).

 It also simplifies the basic theme requirement to a single file.

 The transition could be pretty simple:
 1. look first in the index.php file for the defining comments,
 2. if not present, look in style.css to maintain backwards compatibility.

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


More information about the wp-trac mailing list