forked from mirror/_s
Get rid of coding standards errors in the 404 page template by making sure that potentially unsafe output is escaped. See #737.
This commit is contained in:
parent
171e1d10b2
commit
66d350aa3c
6
404.php
6
404.php
|
@ -12,11 +12,11 @@ get_header(); ?>
|
|||
|
||||
<section class="error-404 not-found">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', '_s' ); ?></h1>
|
||||
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', '_s' ); ?></h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div class="page-content">
|
||||
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', '_s' ); ?></p>
|
||||
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', '_s' ); ?></p>
|
||||
|
||||
<?php get_search_form(); ?>
|
||||
|
||||
|
@ -24,7 +24,7 @@ get_header(); ?>
|
|||
|
||||
<?php if ( _s_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
|
||||
<div class="widget widget_categories">
|
||||
<h2 class="widget-title"><?php _e( 'Most Used Categories', '_s' ); ?></h2>
|
||||
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', '_s' ); ?></h2>
|
||||
<ul>
|
||||
<?php
|
||||
wp_list_categories( array(
|
||||
|
|
Reference in New Issue