WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/04/2017 06:39:15 AM (3 years 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:
2 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(
Note: See TracChangeset for help on using the changeset viewer.