WordPress.org

Make WordPress Core

Changeset 30925


Ignore:
Timestamp:
12/16/2014 08:33:08 PM (6 years ago)
Author:
johnbillion
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'.

Merges [30897] to the 4.1 branch.

see #30724.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/src/wp-content/themes/twentyfifteen/header.php

    r30924 r30925  
    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.