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:
parent
c5276922ef
commit
0462166cec
|
@ -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;
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue