Twenty Fifteen: Check if we're in the customizer before we avoid outputting HTML for an empty tagline. Avoids an issue with a not-updating customizer preview of the tagline if you're going in with an empty tagline.

Props philiparthurmoore, celloexpressions, fixes #30358.


Built from https://develop.svn.wordpress.org/trunk@30391


git-svn-id: http://core.svn.wordpress.org/trunk@30388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ian Stewart 2014-11-19 18:41:22 +00:00
parent bbdafdc925
commit d06a94d1e4

View File

@ -37,7 +37,7 @@
<?php endif;
$description = get_bloginfo( 'description', 'display' );
if ( ! empty( $description ) ) : ?>
if ( ! empty( $description ) || is_customize_preview() ) : ?>
<p class="site-description"><?php echo esc_html( $description ); ?></p>
<?php endif;
?>