[wp-trac] [WordPress Trac] #10618: Conditionnal IE CSS not possible for plugins

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 31 22:41:58 UTC 2009


#10618: Conditionnal IE CSS not possible for plugins
----------------------------+-----------------------------------------------
 Reporter:  arena           |        Owner:         
     Type:  defect (bug)    |       Status:  closed 
 Priority:  low             |    Milestone:         
Component:  Administration  |      Version:  2.8.4  
 Severity:  normal          |   Resolution:  invalid
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by azaozz):

  * status:  reopened => closed
  * resolution:  => invalid
  * milestone:  Future Release =>


Comment:

 This seems to work well:
 {{{
   wp_enqueue_style('my-style', WP_PLUGIN_URL . '/my-plugin/style.css', ...
 );
   global $wp_styles;
   $wp_styles->add_data( 'my-style', 'conditional', 'lte IE 7' );
 }}}

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


More information about the wp-trac mailing list