[wp-trac] [WordPress Trac] #16024: Conditional Comments for JS

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 29 16:06:22 UTC 2010


#16024: Conditional Comments for JS
-------------------------+---------------------------------
 Reporter:  filosofo     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Future Release
Component:  Template     |    Version:  3.1
 Severity:  normal       |   Keywords:  has-patch 3.2-early
-------------------------+---------------------------------
 Currently, we can add IE conditional comments for CSS but not JS.  That
 seems unnecessarily inconsistent.

 Patch would allow us to something like:

 {{{
 wp_enqueue_script( 'pngfix-handle' );
 $wp_scripts->add_data( 'pngfix-handle', 'conditional', 'IE 6' );
 }}}

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


More information about the wp-trac mailing list