[wp-trac] [WordPress Trac] #22122: Conditional CSS to EXCEPT IE

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 7 19:46:33 UTC 2012


#22122: Conditional CSS to EXCEPT IE
-----------------------------+-------------------------
 Reporter:  syndrael         |       Type:  enhancement
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Appearance
  Version:  3.4.2            |   Severity:  normal
 Keywords:  needs-patch      |
-----------------------------+-------------------------
 Hello


 Sorry for my poor english


 In class.wp-styles.php line 69 (and following ones) must be replaced by
 those line below.

 Like that, we can except IE for a CSS thanks to conditional '!IE'

 {{{
 if ( isset($obj->extra['conditional']) && $obj->extra['conditional'] ) {
                         if($obj->extra['conditional'] != '!IE'):
                                 $tag .= "<!--[if
 {$obj->extra['conditional']}]>\n";
                                 $end_cond = "<![endif]-->\n";
                         else: //<![if !IE]> .. <![endif]>
                                 $tag .= "<![if
 {$obj->extra['conditional']}]>\n";
                                 $end_cond = "<![endif]>\n";
                         endif;
                 }
 }}}




 I hope it will be helpful for you.


 Best regards form Paris France

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


More information about the wp-trac mailing list