Make WordPress Core

Ticket #58102: 58102-twentyseventeen-404.diff

File 58102-twentyseventeen-404.diff, 942 bytes (added by viralsampat, 3 years ago)

I have checked above mentioned issue into the theme section and I have resolved it and added patch.

  • src/wp-content/themes/twentyseventeen/404.php

    diff --git a/src/wp-content/themes/twentyseventeen/404.php b/src/wp-content/themes/twentyseventeen/404.php
    index 2807db1a88..1a87e46a34 100644
    a b get_header(); ?>  
    1818
    1919                        <section class="error-404 not-found">
    2020                                <header class="page-header">
    21                                         <h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'twentyseventeen' ); ?></h1>
     21                                        <h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'twentyseventeen' ); ?></h1>
    2222                                </header><!-- .page-header -->
    2323                                <div class="page-content">
    24                                         <p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyseventeen' ); ?></p>
     24                                        <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyseventeen' ); ?></p>
    2525
    2626                                        <?php get_search_form(); ?>
    2727