Make WordPress Core

Changeset 40311 for trunk


Ignore:
Timestamp:
03/22/2017 03:51:07 AM (8 years ago)
Author:
SergeyBiryukov
Message:

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

Props bor0.
Fixes #40216.

Location:
trunk/src/wp-content/themes/twentyseventeen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/footer.php

    r38985 r40311  
    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(
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php

    r39618 r40311  
    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">
    1414        <?php
Note: See TracChangeset for help on using the changeset viewer.