[wp-trac] [WordPress Trac] #18753: Add data to stylesheets

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 22 21:19:42 UTC 2011


#18753: Add data to stylesheets
-------------------------+------------------------------
 Reporter:  kobenland    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Template     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by nacin):

 This exists currently, but you have to dig into $wp_styles and use
 add_data(), such as add_data( 'ie', 'conditional', 'lte IE 7' ) and
 add_data( $handle, 'rtl', true );.

 It's complex (I didn't provide a code sample as I'd have to look it up
 beyond what I provided) and I wouldn't mind some wrappers here.

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


More information about the wp-trac mailing list