Skip to content
Permalink
Browse files

Fix translatable strings and escaping

  • Loading branch information...
jacklenox committed Jun 8, 2018
1 parent 8161d06 commit f3cf59fdb15b4acc7f7803e766b9475e41635bfe
Showing with 3 additions and 3 deletions.
  1. +2 −2 header.php
  2. +1 −1 menu.php
@@ -29,7 +29,7 @@
the_custom_logo();
else :
?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo file_get_contents( get_stylesheet_directory() . '/images/eco-chat.svg' ); ?><span class="screen-reader-text">Home</span></a>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo file_get_contents( get_stylesheet_directory() . '/images/eco-chat.svg' ); ?><span class="screen-reader-text"><?php esc_html_e( 'Home', 'susty' ); ?></span></a>
<?php
endif;
?>
@@ -58,7 +58,7 @@
<?php
else :
?>
<a href="<?php echo esc_url( ( get_option( 'permalink_structure' ) ? home_url( '/menu/' ) : home_url( '/?menu' ) ) ); ?>">Menu</a>
<a href="<?php echo esc_url( ( get_option( 'permalink_structure' ) ? home_url( '/menu/' ) : home_url( '/?menu' ) ) ); ?>"><?php esc_html_e( 'Menu', 'susty' ); ?></a>
<?php
endif;
?>
@@ -3,7 +3,7 @@
?>

<nav id="site-navigation" class="main-navigation">
<h1><?php _e('Menu','susty');?></h1>
<h1><?php esc_html_e( 'Menu', 'susty' );?></h1>
<?php
wp_nav_menu( array(
'theme_location' => 'menu-1',

0 comments on commit f3cf59f

Please sign in to comment.
You can’t perform that action at this time.