Make WordPress Core

Ticket #58102: 58102-twentyfifteen.diff

File 58102-twentyfifteen.diff, 4.6 KB (added by viralsampat, 3 years ago)

I have checked another theme and founds few file. Here, I have added its patch.

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

    diff --git a/src/wp-content/themes/twentyfifteen/404.php b/src/wp-content/themes/twentyfifteen/404.php
    index e5ca57380b..0e4cdc4775 100644
    a b get_header(); ?>  
    1414
    1515                        <section class="error-404 not-found">
    1616                                <header class="page-header">
    17                                         <h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'twentyfifteen' ); ?></h1>
     17                                        <h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'twentyfifteen' ); ?></h1>
    1818                                </header><!-- .page-header -->
    1919
    2020                                <div class="page-content">
    21                                         <p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyfifteen' ); ?></p>
     21                                        <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyfifteen' ); ?></p>
    2222
    2323                                        <?php get_search_form(); ?>
    2424                                </div><!-- .page-content -->
  • src/wp-content/themes/twentyfifteen/author-bio.php

    diff --git a/src/wp-content/themes/twentyfifteen/author-bio.php b/src/wp-content/themes/twentyfifteen/author-bio.php
    index 995ad1a4c7..19a7351805 100644
    a b  
    99?>
    1010
    1111<div class="author-info">
    12         <h2 class="author-heading"><?php _e( 'Published by', 'twentyfifteen' ); ?></h2>
     12        <h2 class="author-heading"><?php esc_html_e( 'Published by', 'twentyfifteen' ); ?></h2>
    1313        <div class="author-avatar">
    1414                <?php
    1515                /**
  • src/wp-content/themes/twentyfifteen/content-none.php

    diff --git a/src/wp-content/themes/twentyfifteen/content-none.php b/src/wp-content/themes/twentyfifteen/content-none.php
    index 055e50b24b..183980bf69 100644
    a b  
    1212
    1313<section class="no-results not-found">
    1414        <header class="page-header">
    15                 <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfifteen' ); ?></h1>
     15                <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'twentyfifteen' ); ?></h1>
    1616        </header><!-- .page-header -->
    1717
    1818        <div class="page-content">
     
    2828
    2929                <?php elseif ( is_search() ) : ?>
    3030
    31                         <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfifteen' ); ?></p>
     31                        <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfifteen' ); ?></p>
    3232                        <?php get_search_form(); ?>
    3333
    3434                <?php else : ?>
    3535
    36                         <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfifteen' ); ?></p>
     36                        <p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfifteen' ); ?></p>
    3737                        <?php get_search_form(); ?>
    3838
    3939                <?php endif; ?>
  • src/wp-content/themes/twentyfifteen/functions.php

    diff --git a/src/wp-content/themes/twentyfifteen/functions.php b/src/wp-content/themes/twentyfifteen/functions.php
    index 0528a01be9..69ebd0f169 100644
    a b if ( ! function_exists( 'twentyfifteen_setup' ) ) :  
    326326                // Indicate widget sidebars can use selective refresh in the Customizer.
    327327                add_theme_support( 'customize-selective-refresh-widgets' );
    328328        }
    329 endif; // twentyfifteen_setup()
     329endif;
    330330add_action( 'after_setup_theme', 'twentyfifteen_setup' );
    331331
    332332/**
  • src/wp-content/themes/twentyfifteen/header.php

    diff --git a/src/wp-content/themes/twentyfifteen/header.php b/src/wp-content/themes/twentyfifteen/header.php
    index d75fc0c876..9e18ec4ac9 100644
    a b  
    2727        <a class="skip-link screen-reader-text" href="#content">
    2828                <?php
    2929                /* translators: Hidden accessibility text. */
    30                 _e( 'Skip to content', 'twentyfifteen' );
     30                esc_html_e( 'Skip to content', 'twentyfifteen' );
    3131                ?>
    3232        </a>
    3333
     
    5252                                                <?php
    5353                                        endif;
    5454                                        ?>
    55                                 <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
     55                                <button class="secondary-toggle"><?php esc_html_e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
    5656                        </div><!-- .site-branding -->
    5757                </header><!-- .site-header -->
    5858
  • src/wp-content/themes/twentyfifteen/inc/custom-header.php

    diff --git a/src/wp-content/themes/twentyfifteen/inc/custom-header.php b/src/wp-content/themes/twentyfifteen/inc/custom-header.php
    index a09bb6b445..675be71efb 100644
    a b if ( ! function_exists( 'twentyfifteen_header_style' ) ) :  
    193193        </style>
    194194                <?php
    195195        }
    196 endif; // twentyfifteen_header_style()
     196endif;
    197197
    198198/**
    199199 * Enqueues front-end CSS for the header background color.