WordPress.org

Make WordPress Core

Changeset 30897


Ignore:
Timestamp:
12/16/2014 01:19:17 PM (6 years ago)
Author:
ocean90
Message:

Twenty Fifteen: Remove esc_html() from blog description.

The blog description gets esc_html()'d *into* the DB. It's also escaped because the filter for get_bloginfo() is set to 'display'.

see #30724.

File:
1 edited

Legend:

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

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