Make WordPress Core


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

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

Props bor0.
Fixes #40216.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.