[wp-trac] [WordPress Trac] #16118: Support for wp_enqueue_style with negative conditional comments
WordPress Trac
noreply at wordpress.org
Sun Sep 29 18:24:44 UTC 2013
#16118: Support for wp_enqueue_style with negative conditional comments
-------------------------------------------------+-------------------------
Reporter: sayontan | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future
Component: General | Release
Severity: normal | Version: 3.0.4
Keywords: has-patch needs-testing dev- | Resolution:
feedback 3.6-early |
-------------------------------------------------+-------------------------
Comment (by pburke):
Just a comment for anyone looking for a workaround: Rather than using a
!IE conditional comment, consider testing the $is_IE global variable and
enqueueing your non-IE style if it is false:
{{{
global $is_IE;
if (!$is_IE) {
wp_enqueue_style( 'mytheme-style', get_stylesheet_uri() );
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16118#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list