WordPress.org

Make WordPress Core

#22122 closed enhancement (duplicate)

Conditional CSS to EXCEPT IE

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

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 SergeyBiryukov19 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.