Twenty Thirteen: Use the newer 'enqueued' argument for wp_style_is(). (This is, incidentally, the default.)

git-svn-id: http://core.svn.wordpress.org/trunk@24032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-04-18 17:15:18 +00:00
parent f820654a5b
commit 6aa74f9b93

View File

@ -487,7 +487,7 @@ add_filter( 'shortcode_atts_gallery', 'twentythirteen_gallery_atts' );
function twentythirteen_body_class( $classes ) {
// Enable custom font class only if the font CSS is queued to load.
if ( wp_style_is( 'twentythirteen-fonts', 'queue' ) )
if ( wp_style_is( 'twentythirteen-fonts', 'enqueued' ) )
$classes[] = 'custom-font';
if ( ! is_multi_author() )