Make WordPress Core

Changeset 30391


Ignore:
Timestamp:
11/19/2014 06:40:25 PM (10 years ago)
Author:
iandstewart
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/header.php

    r30233 r30391  
    3838
    3939                    $description = get_bloginfo( 'description', 'display' );
    40                     if ( ! empty( $description ) ) : ?>
     40                    if ( ! empty( $description ) || is_customize_preview() ) : ?>
    4141                        <p class="site-description"><?php echo esc_html( $description ); ?></p>
    4242                    <?php endif;
Note: See TracChangeset for help on using the changeset viewer.