Opened 7 months ago
Closed 7 months ago
#22122 closed enhancement (duplicate)
Conditional CSS to EXCEPT IE
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.4.2 |
| Severity: | normal | Keywords: | |
| Cc: | sebastien@… |
Description
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
Change History (1)
comment:1
SergeyBiryukov — 7 months ago
- Component changed from Appearance to General
- Keywords needs-patch removed
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

#16118, #21162