Make WordPress Core


Ignore:
Timestamp:
12/16/2014 08:32:03 PM (11 years ago)
Author:
johnbillion
Message:

Twenty Fifteen: Don't escape translated strings.

Replace every unnecessary instance of esc_html__() and esc_html_e() with just __() and _e().

Merges [30896] 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

    r30798 r30924  
    2525<body <?php body_class(); ?>>
    2626<div id="page" class="hfeed site">
    27     <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'twentyfifteen' ); ?></a>
     27    <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a>
    2828
    2929    <div id="sidebar" class="sidebar">
     
    4242                    <?php endif;
    4343                ?>
    44                 <button class="secondary-toggle"><?php esc_html_e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
     44                <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
    4545            </div><!-- .site-branding -->
    4646        </header><!-- .site-header -->
Note: See TracChangeset for help on using the changeset viewer.