[wp-trac] [WordPress Trac] #12932: Use the enqueue API for twentyten

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 15 21:14:18 UTC 2010


#12932: Use the enqueue API for twentyten
-------------------------+--------------------------------------------------
 Reporter:  ptahdunbar   |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  3.0      
Component:  Themes       |     Version:  3.0      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------
Changes (by freddyware):

  * component:  Template => Themes


Comment:

 Replying to [comment:2 mikeschinkel]:
 > Replying to [comment:1 freddyware]:
 > > Isn't it pretty pointless to remove a hardcoded stylesheet in a
 template? After all, themes are supposed to be associated with a
 stylesheet... unless this modification is supposed to make it possible to
 remove the stylesheet from a theme? (Why would someone do that?)
 > > To date, I have not yet seen a single theme that uses enqueue to load
 their stylesheets. It would make theme development (e.g. in a testing /
 IDE environment) a LOT harder.
 > > Moreover, this isn't really a bug; it's an enhancement.

 You bring up a very good point! Plugins like W3 Total Cache already help
 with minifying JavaScript and CSS, although I'm not sure whether W3 Total
 Cache does so with regular expressions on the HTML page (replacing
 `<script>` and `<link>` tags) or by tapping into enqueue. Certainly using
 enqueue will make this task of minifying easier.

 However, I still stand by the argument that, for a theme developer, it is
 much much harder to debug and test a theme with an enqueued stylesheet
 than with a `<link href>` tag that IDEs and editors recognize.

 Also, this is technically a theme issue. Let's see if this ticket will get
 more attention there.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12932#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list