Escape translations in functions.php

See #737.
This commit is contained in:
Fränk Klein 2015-05-05 12:38:55 +02:00
parent 229d5e93da
commit 2d86340f43
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ function _s_setup() {
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => __( 'Primary Menu', '_s' ),
'primary' => esc_html__( 'Primary Menu', '_s' ),
) );
/*
@ -85,7 +85,7 @@ add_action( 'after_setup_theme', '_s_setup' );
*/
function _s_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', '_s' ),
'name' => esc_html__( 'Sidebar', '_s' ),
'id' => 'sidebar-1',
'description' => '',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',