Twenty Seventeen: Use `esc_attr_e()` for translatable strings in HTML attributes.
Props bor0. Fixes #40216. Built from https://develop.svn.wordpress.org/trunk@40311 git-svn-id: http://core.svn.wordpress.org/trunk@40218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6a2b38ca6c
commit
f44fe7f5fe
|
@ -22,7 +22,7 @@
|
||||||
get_template_part( 'template-parts/footer/footer', 'widgets' );
|
get_template_part( 'template-parts/footer/footer', 'widgets' );
|
||||||
|
|
||||||
if ( has_nav_menu( 'social' ) ) : ?>
|
if ( has_nav_menu( 'social' ) ) : ?>
|
||||||
<nav class="social-navigation" role="navigation" aria-label="<?php _e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>">
|
<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>">
|
||||||
<?php
|
<?php
|
||||||
wp_nav_menu( array(
|
wp_nav_menu( array(
|
||||||
'theme_location' => 'social',
|
'theme_location' => 'social',
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php _e( 'Top Menu', 'twentyseventeen' ); ?>">
|
<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'twentyseventeen' ); ?>">
|
||||||
<button class="menu-toggle" aria-controls="top-menu" aria-expanded="false">
|
<button class="menu-toggle" aria-controls="top-menu" aria-expanded="false">
|
||||||
<?php
|
<?php
|
||||||
echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) );
|
echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-alpha-40310';
|
$wp_version = '4.8-alpha-40311';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue