[wp-trac] [WordPress Trac] #33957: wp_enqueue_style conditional
WordPress Trac
noreply at wordpress.org
Tue Sep 22 07:31:33 UTC 2015
#33957: wp_enqueue_style conditional
------------------------------+----------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Version: 4.3.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
------------------------------+----------------------
Changes (by swissspidy):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
You can already add conditional comments for IE with `wp_enqueue_style`.
Example:
{{{
global $wp_styles;
wp_enqueue_style( 'my-theme-ie7', get_stylesheet_directory_uri() .
"/css/ie7.css" );
$wp_styles->add_data( 'my-theme-ie7', 'conditional', 'IE 7' );
}}}
I don't think adding an extra param for this makes sense. Older IE
versions are slowly dying and newer versions don't even support
conditional comments anymore.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33957#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list