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.



git-svn-id: https://develop.svn.wordpress.org/trunk@30391 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ian Stewart 2014-11-19 18:40:25 +00:00
parent c5276922ef
commit 0462166cec
1 changed files with 1 additions and 1 deletions

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;
?>