[theme-reviewers] Using wp_enqueue_style() With IE Conditionals
chip at chipbennett.net
Thu Apr 21 18:39:37 UTC 2011
I agree - but we rarely take something from a non-suggestion to *required*
in one step, unless a critical need exists.
The general path is to make something *recommended*, fit-test it for a
while, and then bump it up to *required*.
On Fri, Apr 22, 2011 at 1:27 PM, Justin Tadlock <justin at justintadlock.com>wrote:
> This should be the *required* way. Additional stylesheets should always
> be added with wp_enqueue_style(). This is what I've been putting in my
> reviews, even for conditional stylesheets.
> On 4/21/2011 1:22 PM, Chip Bennett wrote:
> I just found this:
> get_template_directory_uri() . '/ie7.css'
> global <http://www.php.net/global> $wp_styles;
> $wp_styles->add_data( 'ie7-style', 'conditional', 'lte IE 7′);
> This might move into the Guidelines, as *Recommended* implementation of
> enqueueing IE-conditional stylesheets. Thoughts?
> theme-reviewers mailing listtheme-reviewers at lists.wordpress.orghttp://lists.wordpress.org/mailman/listinfo/theme-reviewers
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers