Permalink
Browse files

Escape properly theme copy.

  • Loading branch information...
gonzomir committed Oct 9, 2017
1 parent 2566a78 commit 9d668aef0c80c9590c57475a0463d347bffb5d82
Showing with 4 additions and 4 deletions.
  1. +1 −1 comments.php
  2. +1 −1 footer.php
  3. +2 −2 searchform.php
@@ -28,7 +28,7 @@
<h2 class="comments-title">
<?php
printf( // WPCS: XSS OK.
esc_html( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'grid-magazine' ) ),
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'grid-magazine' ) ),
number_format_i18n( get_comments_number() ),
'<span>' . get_the_title() . '</span>'
);
@@ -17,7 +17,7 @@
<div class="site-info">
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'grid-magazine' ) ); ?>"><?php printf( esc_html__( 'Proudly powered by %s', 'grid-magazine' ), 'WordPress' ); ?></a>
<span class="sep"> | </span>
<?php printf( esc_html__( 'Theme: %1$s by %2$s.', 'grid-magazine' ), sprintf( '<a href="https://github.com/gonzomir/grid-magazine">%s</a>', __( 'Grid Magazine', 'grid-magazine' ) ), __( 'Milen Petrinski - Gonzo', 'grid-magazine' ) ); ?>
<?php printf( esc_html__( 'Theme: %1$s by %2$s.', 'grid-magazine' ), sprintf( '<a href="https://github.com/gonzomir/grid-magazine">%s</a>', esc_html__( 'Grid Magazine', 'grid-magazine' ) ), esc_html__( 'Milen Petrinski - Gonzo', 'grid-magazine' ) ); ?>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
@@ -1,5 +1,5 @@
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="s" class="screen-reader-text"><?php _e( 'Search for:', 'grid-magazine' ); ?></label>
<label for="s" class="screen-reader-text"><?php esc_html_e( 'Search for:', 'grid-magazine' ); ?></label>
<input type="search" name="s" id="s" class="search-field" placeholder="<?php echo esc_attr( __( 'Search &hellip;', 'grid-magazine' ) ); ?>" value="<?php get_search_query(); ?>" required />
<button type="submit"><?php _e( 'Search', 'grid-magazine' ); ?></button>
<button type="submit"><?php esc_html_x( 'Search', 'search button label', 'grid-magazine' ); ?></button>
</form>

0 comments on commit 9d668ae

Please sign in to comment.