WordPress.org

Make WordPress Core

Changeset 40374


Ignore:
Timestamp:
04/04/17 06:39:15 (3 months ago)
Author:
swissspidy
Message:

Twenty Seventeen: Use esc_attr_e() for translatable strings in HTML attributes.

Props bor0.
Fixes #40216.

Merges [40311] to the 4.7 branch.

Location:
branches/4.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-content/themes/twentyseventeen/footer.php

    r38985 r40374  
    2323 
    2424                if ( has_nav_menu( 'social' ) ) : ?> 
    25                     <nav class="social-navigation" role="navigation" aria-label="<?php _e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>"> 
     25                    <nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>"> 
    2626                        <?php 
    2727                            wp_nav_menu( array( 
  • branches/4.7/src/wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php

    r39385 r40374  
    1010 
    1111?> 
    12 <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php _e( 'Top Menu', 'twentyseventeen' ); ?>"> 
     12<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'twentyseventeen' ); ?>"> 
    1313    <button class="menu-toggle" aria-controls="top-menu" aria-expanded="false"><?php echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) ); echo twentyseventeen_get_svg( array( 'icon' => 'close' ) ); _e( 'Menu', 'twentyseventeen' ); ?></button> 
    1414    <?php wp_nav_menu( array( 
Note: See TracChangeset for help on using the changeset viewer.