Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#22122 closed enhancement (duplicate)

Conditional CSS to EXCEPT IE

Reported by: syndrael's profile syndrael Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4.2
Component: General Keywords:
Focuses: Cc:



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";

I hope it will be helpful for you.

Best regards form Paris France

Change History (1)

#1 @SergeyBiryukov
12 years 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.