This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge pull request #400 from lancewillett/master

Escape attribute text properly in `aria-label` attributes
  • Loading branch information...
iamtakashi committed Dec 29, 2015
2 parents d8e126b + 6b54caa commit 6a5704a45a1da24ba2c2b9b9c165b4611bf06a55
Showing with 4 additions and 4 deletions.
  1. +2 −2 footer.php
  2. +2 −2 header.php
View
@@ -14,7 +14,7 @@
<footer id="colophon" class="site-footer" role="contentinfo">
<?php if ( has_nav_menu( 'primary' ) ) : ?>
- <nav class="main-navigation" role="navigation" aria-label="<?php _e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
+ <nav class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
@@ -25,7 +25,7 @@
<?php endif; ?>
<?php if ( has_nav_menu( 'social' ) ) : ?>
- <nav class="social-navigation" role="navigation" aria-label="<?php _e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
+ <nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
<?php
wp_nav_menu( array(
'theme_location' => 'social',
View
@@ -46,7 +46,7 @@
<div id="site-header-menu" class="site-header-menu">
<?php if ( has_nav_menu( 'primary' ) ) : ?>
- <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php _e( 'Primary Menu', 'twentysixteen' ); ?>">
+ <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'twentysixteen' ); ?>">
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
@@ -57,7 +57,7 @@
<?php endif; ?>
<?php if ( has_nav_menu( 'social' ) ) : ?>
- <nav id="social-navigation" class="social-navigation" role="navigation" aria-label="<?php _e( 'Social Links Menu', 'twentysixteen' ); ?>">
+ <nav id="social-navigation" class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'twentysixteen' ); ?>">
<?php
wp_nav_menu( array(
'theme_location' => 'social',

0 comments on commit 6a5704a

Please sign in to comment.