Make WordPress Core

Ticket #58102: 58102-twentyeleven.diff

File 58102-twentyeleven.diff, 24.2 KB (added by viralsampat, 3 years ago)

I have checked above mentioned issue and founds few files. Here, I have added its patch.

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

    diff --git src/wp-content/themes/twentyeleven/404.php src/wp-content/themes/twentyeleven/404.php
    index 2dc9998c1d..c07c70fa07 100644
    get_header(); ?>  
    1414
    1515                        <article id="post-0" class="post error404 not-found">
    1616                                <header class="entry-header">
    17                                         <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'twentyeleven' ); ?></h1>
     17                                        <h1 class="entry-title"><?php esc_html_e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'twentyeleven' ); ?></h1>
    1818                                </header>
    1919
    2020                                <div class="entry-content">
    21                                         <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching, or one of the links below, can help.', 'twentyeleven' ); ?></p>
     21                                        <p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching, or one of the links below, can help.', 'twentyeleven' ); ?></p>
    2222
    2323                                        <?php get_search_form(); ?>
    2424
    2525                                        <?php the_widget( 'WP_Widget_Recent_Posts', array( 'number' => 10 ), array( 'widget_id' => '404' ) ); ?>
    2626
    2727                                        <div class="widget">
    28                                                 <h2 class="widgettitle"><?php _e( 'Most Used Categories', 'twentyeleven' ); ?></h2>
     28                                                <h2 class="widgettitle"><?php esc_html_e( 'Most Used Categories', 'twentyeleven' ); ?></h2>
    2929                                                <ul>
    3030                                                <?php
    3131                                                wp_list_categories(
  • src/wp-content/themes/twentyeleven/archive.php

    diff --git src/wp-content/themes/twentyeleven/archive.php src/wp-content/themes/twentyeleven/archive.php
    index a21e626b70..7e36e139ae 100644
    get_header(); ?>  
    3232                                                        /* translators: %s: Date. */
    3333                                                        printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' );
    3434                                                } else {
    35                                                         _e( 'Blog Archives', 'twentyeleven' );
     35                                                        esc_html_e( 'Blog Archives', 'twentyeleven' );
    3636                                                }
    3737                                                ?>
    3838                                        </h1>
    get_header(); ?>  
    6464
    6565                                <article id="post-0" class="post no-results not-found">
    6666                                        <header class="entry-header">
    67                                                 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
     67                                                <h1 class="entry-title"><?php esc_html_e( 'Nothing Found', 'twentyeleven' ); ?></h1>
    6868                                        </header><!-- .entry-header -->
    6969
    7070                                        <div class="entry-content">
    71                                                 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
     71                                                <p><?php esc_html_e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
    7272                                                <?php get_search_form(); ?>
    7373                                        </div><!-- .entry-content -->
    7474                                </article><!-- #post-0 -->
  • src/wp-content/themes/twentyeleven/author.php

    diff --git src/wp-content/themes/twentyeleven/author.php src/wp-content/themes/twentyeleven/author.php
    index ad2117324f..033bd6f170 100644
    get_header(); ?>  
    9999
    100100                                <article id="post-0" class="post no-results not-found">
    101101                                        <header class="entry-header">
    102                                                 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
     102                                                <h1 class="entry-title"><?php esc_html_e( 'Nothing Found', 'twentyeleven' ); ?></h1>
    103103                                        </header><!-- .entry-header -->
    104104
    105105                                        <div class="entry-content">
    106                                                 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
     106                                                <p><?php esc_html_e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
    107107                                                <?php get_search_form(); ?>
    108108                                        </div><!-- .entry-content -->
    109109                                </article><!-- #post-0 -->
  • src/wp-content/themes/twentyeleven/category.php

    diff --git src/wp-content/themes/twentyeleven/category.php src/wp-content/themes/twentyeleven/category.php
    index e9bc2e7052..ed6a8b61c5 100644
    get_header(); ?>  
    6363
    6464                                <article id="post-0" class="post no-results not-found">
    6565                                        <header class="entry-header">
    66                                                 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
     66                                                <h1 class="entry-title"><?php esc_html_e( 'Nothing Found', 'twentyeleven' ); ?></h1>
    6767                                        </header><!-- .entry-header -->
    6868
    6969                                        <div class="entry-content">
    70                                                 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
     70                                                <p><?php esc_html_e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
    7171                                                <?php get_search_form(); ?>
    7272                                        </div><!-- .entry-content -->
    7373                                </article><!-- #post-0 -->
  • src/wp-content/themes/twentyeleven/comments.php

    diff --git src/wp-content/themes/twentyeleven/comments.php src/wp-content/themes/twentyeleven/comments.php
    index 0787c43b22..23bf0e3111 100644
     
    1414?>
    1515        <div id="comments">
    1616        <?php if ( post_password_required() ) : ?>
    17                 <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?></p>
     17                <p class="nopassword"><?php esc_html_e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?></p>
    1818        </div><!-- #comments -->
    1919                <?php
    2020                        /*
     
    5050
    5151                <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
    5252                <nav id="comment-nav-above">
    53                         <h1 class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></h1>
     53                        <h1 class="assistive-text"><?php esc_html_e( 'Comment navigation', 'twentyeleven' ); ?></h1>
    5454                        <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyeleven' ) ); ?></div>
    5555                        <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyeleven' ) ); ?></div>
    5656                </nav>
     
    7171
    7272                <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
    7373                <nav id="comment-nav-below">
    74                         <h1 class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></h1>
     74                        <h1 class="assistive-text"><?php esc_html_e( 'Comment navigation', 'twentyeleven' ); ?></h1>
    7575                        <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyeleven' ) ); ?></div>
    7676                        <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyeleven' ) ); ?></div>
    7777                </nav>
     
    8484                 */
    8585                if ( ! comments_open() && get_comments_number() ) :
    8686                        ?>
    87                 <p class="nocomments"><?php _e( 'Comments are closed.', 'twentyeleven' ); ?></p>
     87                <p class="nocomments"><?php esc_html_e( 'Comments are closed.', 'twentyeleven' ); ?></p>
    8888                <?php endif; ?>
    8989
    9090        <?php endif; // have_comments() ?>
  • src/wp-content/themes/twentyeleven/content-aside.php

    diff --git src/wp-content/themes/twentyeleven/content-aside.php src/wp-content/themes/twentyeleven/content-aside.php
    index 03dd772249..c115f84733 100644
     
    1616                <header class="entry-header">
    1717                        <hgroup>
    1818                                <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    19                                 <h3 class="entry-format"><?php _e( 'Aside', 'twentyeleven' ); ?></h3>
     19                                <h3 class="entry-format"><?php esc_html_e( 'Aside', 'twentyeleven' ); ?></h3>
    2020                        </hgroup>
    2121
    2222                        <?php if ( comments_open() && ! post_password_required() ) : ?>
  • src/wp-content/themes/twentyeleven/content-gallery.php

    diff --git src/wp-content/themes/twentyeleven/content-gallery.php src/wp-content/themes/twentyeleven/content-gallery.php
    index 9ecb7073b1..31cf92b717 100644
     
    1616        <header class="entry-header">
    1717                <hgroup>
    1818                        <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    19                         <h3 class="entry-format"><?php _e( 'Gallery', 'twentyeleven' ); ?></h3>
     19                        <h3 class="entry-format"><?php esc_html_e( 'Gallery', 'twentyeleven' ); ?></h3>
    2020                </hgroup>
    2121
    2222                <div class="entry-meta">
     
    107107                <span class="sep"> | </span>
    108108                <?php endif; // End if $show_sep. ?>
    109109                <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    110                 <?php endif; // End if comments_open(). ?>
     110                <?php endif; ?>
    111111
    112112                <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    113113        </footer><!-- .entry-meta -->
  • src/wp-content/themes/twentyeleven/content-image.php

    diff --git src/wp-content/themes/twentyeleven/content-image.php src/wp-content/themes/twentyeleven/content-image.php
    index c404733014..78450d2269 100644
     
    1515                <header class="entry-header">
    1616                        <hgroup>
    1717                                <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    18                                 <h3 class="entry-format"><?php _e( 'Image', 'twentyeleven' ); ?></h3>
     18                                <h3 class="entry-format"><?php esc_html_e( 'Image', 'twentyeleven' ); ?></h3>
    1919                        </hgroup>
    2020
    2121                        <?php if ( comments_open() && ! post_password_required() ) : ?>
  • src/wp-content/themes/twentyeleven/content-link.php

    diff --git src/wp-content/themes/twentyeleven/content-link.php src/wp-content/themes/twentyeleven/content-link.php
    index 2f30a85e3f..81a69db612 100644
     
    1616                <header class="entry-header">
    1717                        <hgroup>
    1818                                <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    19                                 <h3 class="entry-format"><?php _e( 'Link', 'twentyeleven' ); ?></h3>
     19                                <h3 class="entry-format"><?php esc_html_e( 'Link', 'twentyeleven' ); ?></h3>
    2020                        </hgroup>
    2121
    2222                        <?php if ( comments_open() && ! post_password_required() ) : ?>
  • src/wp-content/themes/twentyeleven/content-quote.php

    diff --git src/wp-content/themes/twentyeleven/content-quote.php src/wp-content/themes/twentyeleven/content-quote.php
    index 3dc531b8ad..33d6b9cb35 100644
     
    1212                <header class="entry-header">
    1313                        <hgroup>
    1414                                <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    15                                 <h3 class="entry-format"><?php _e( 'Quote', 'twentyeleven' ); ?></h3>
     15                                <h3 class="entry-format"><?php esc_html_e( 'Quote', 'twentyeleven' ); ?></h3>
    1616                        </hgroup>
    1717
    1818                        <div class="entry-meta">
     
    8383                        <span class="sep"> | </span>
    8484                        <?php endif; // End if $show_sep. ?>
    8585                        <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    86                         <?php endif; // End if comments_open(). ?>
     86                        <?php endif; ?>
    8787
    8888                        <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    8989                </footer><!-- .entry-meta -->
  • src/wp-content/themes/twentyeleven/content-status.php

    diff --git src/wp-content/themes/twentyeleven/content-status.php src/wp-content/themes/twentyeleven/content-status.php
    index 60a1e4d9ba..1206a0b653 100644
     
    1616                <header class="entry-header">
    1717                        <hgroup>
    1818                                <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    19                                 <h3 class="entry-format"><?php _e( 'Status', 'twentyeleven' ); ?></h3>
     19                                <h3 class="entry-format"><?php esc_html_e( 'Status', 'twentyeleven' ); ?></h3>
    2020                        </hgroup>
    2121
    2222                        <?php if ( comments_open() && ! post_password_required() ) : ?>
  • src/wp-content/themes/twentyeleven/content.php

    diff --git src/wp-content/themes/twentyeleven/content.php src/wp-content/themes/twentyeleven/content.php
    index f6294d2ab7..b52e8ab86e 100644
     
    1313                        <?php if ( is_sticky() ) : ?>
    1414                                <hgroup>
    1515                                        <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    16                                         <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
     16                                        <h3 class="entry-format"><?php esc_html_e( 'Featured', 'twentyeleven' ); ?></h3>
    1717                                </hgroup>
    1818                        <?php else : ?>
    1919                        <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
     
    6666                                        $show_sep = true;
    6767                                        ?>
    6868                        </span>
    69                                 <?php endif; // End if categories. ?>
    70                         <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ). ?>
     69                                <?php endif; ?>
     70                        <?php endif; ?>
    7171
    7272                        <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported. ?>
    7373                                <?php
     
    8585                                        $show_sep = true;
    8686                                        ?>
    8787                        </span>
    88                                 <?php endif; // End if $tags_list. ?>
    89                         <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ). ?>
     88                                <?php endif; ?>
     89                        <?php endif; ?>
    9090
    9191                        <?php if ( comments_open() ) : ?>
    9292                                <?php if ( $show_sep ) : ?>
    9393                        <span class="sep"> | </span>
    9494                        <?php endif; // End if $show_sep. ?>
    9595                        <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    96                         <?php endif; // End if comments_open(). ?>
     96                        <?php endif; ?>
    9797
    9898                        <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    9999                </footer><!-- .entry-meta -->
  • src/wp-content/themes/twentyeleven/functions.php

    diff --git src/wp-content/themes/twentyeleven/functions.php src/wp-content/themes/twentyeleven/functions.php
    index 7dc3bf52ef..6761b8f729 100644
    if ( ! function_exists( 'twentyeleven_setup' ) ) :  
    288288                // Indicate widget sidebars can use selective refresh in the Customizer.
    289289                add_theme_support( 'customize-selective-refresh-widgets' );
    290290        }
    291 endif; // twentyeleven_setup()
     291endif;
    292292
    293293/**
    294294 * Enqueue scripts and styles for front end.
    if ( ! function_exists( 'twentyeleven_header_style' ) ) :  
    351351        </style>
    352352                <?php
    353353        }
    354 endif; // twentyeleven_header_style()
     354endif;
    355355
    356356if ( ! function_exists( 'twentyeleven_admin_header_style' ) ) :
    357357        /**
    if ( ! function_exists( 'twentyeleven_admin_header_style' ) ) :  
    401401        </style>
    402402                <?php
    403403        }
    404 endif; // twentyeleven_admin_header_style()
     404endif;
    405405
    406406if ( ! function_exists( 'twentyeleven_admin_header_image' ) ) :
    407407        /**
    if ( ! function_exists( 'twentyeleven_admin_header_image' ) ) :  
    431431                </div>
    432432                <?php
    433433        }
    434 endif; // twentyeleven_admin_header_image()
     434endif;
    435435
    436436/**
    437437 * Set the post excerpt length to 40 words.
    if ( ! function_exists( 'twentyeleven_continue_reading_link' ) ) :  
    461461        function twentyeleven_continue_reading_link() {
    462462                return ' <a href="' . esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) . '</a>';
    463463        }
    464 endif; // twentyeleven_continue_reading_link()
     464endif;
    465465
    466466/**
    467467 * Replace "[...]" in the Read More link with an ellipsis.
    if ( ! function_exists( 'twentyeleven_content_nav' ) ) :  
    605605                if ( $wp_query->max_num_pages > 1 ) :
    606606                        ?>
    607607                        <nav id="<?php echo esc_attr( $html_id ); ?>">
    608                                 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
     608                                <h3 class="assistive-text"><?php esc_html_e( 'Post navigation', 'twentyeleven' ); ?></h3>
    609609                                <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyeleven' ) ); ?></div>
    610610                                <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?></div>
    611611                        </nav><!-- #nav-above -->
    612612                        <?php
    613613        endif;
    614614        }
    615 endif; // twentyeleven_content_nav()
     615endif;
    616616
    617617/**
    618618 * Return the first link from the post content. If none found, the
    if ( ! function_exists( 'twentyeleven_comment' ) ) :  
    712712                        case 'trackback':
    713713                                ?>
    714714                <li class="post pingback">
    715                 <p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?></p>
     715                <p><?php esc_html_e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?></p>
    716716                                <?php
    717717                                break;
    718718                        default:
    if ( ! function_exists( 'twentyeleven_comment' ) ) :  
    785785                                break;
    786786                endswitch;
    787787        }
    788 endif; // twentyeleven_comment()
     788endif;
    789789
    790790if ( ! function_exists( 'twentyeleven_posted_on' ) ) :
    791791        /**
  • src/wp-content/themes/twentyeleven/header.php

    diff --git src/wp-content/themes/twentyeleven/header.php src/wp-content/themes/twentyeleven/header.php
    index 62d9b344dd..4d91641c18 100644
     
    88 * @subpackage Twenty_Eleven
    99 * @since Twenty Eleven 1.0
    1010 */
     11
     12 global $post;
     13
    1114?><!DOCTYPE html>
    1215<!--[if IE 6]>
    1316<html id="ie6" <?php language_attributes(); ?>>
    if ( is_singular() && get_option( 'thread_comments' ) ) {  
    145148                        <?php endif; ?>
    146149
    147150                        <nav id="access">
    148                                 <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
     151                                <h3 class="assistive-text"><?php esc_html_e( 'Main menu', 'twentyeleven' ); ?></h3>
    149152                                <?php
    150153                                /*
    151154                                 * Our navigation menu. If one isn't filled out, wp_nav_menu() falls back to wp_page_menu().
  • src/wp-content/themes/twentyeleven/index.php

    diff --git src/wp-content/themes/twentyeleven/index.php src/wp-content/themes/twentyeleven/index.php
    index a4a7c04f18..9066201e0f 100644
    get_header(); ?>  
    3737
    3838                                <article id="post-0" class="post no-results not-found">
    3939                                        <header class="entry-header">
    40                                                 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
     40                                                <h1 class="entry-title"><?php esc_html_e( 'Nothing Found', 'twentyeleven' ); ?></h1>
    4141                                        </header><!-- .entry-header -->
    4242
    4343                                        <div class="entry-content">
    44                                                 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
     44                                                <p><?php esc_html_e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
    4545                                                <?php get_search_form(); ?>
    4646                                        </div><!-- .entry-content -->
    4747                                </article><!-- #post-0 -->
  • src/wp-content/themes/twentyeleven/search.php

    diff --git src/wp-content/themes/twentyeleven/search.php src/wp-content/themes/twentyeleven/search.php
    index f7902d35f0..d0501bfaa4 100644
    get_header(); ?>  
    4949
    5050                                <article id="post-0" class="post no-results not-found">
    5151                                        <header class="entry-header">
    52                                                 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
     52                                                <h1 class="entry-title"><?php esc_html_e( 'Nothing Found', 'twentyeleven' ); ?></h1>
    5353                                        </header><!-- .entry-header -->
    5454
    5555                                        <div class="entry-content">
    56                                                 <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyeleven' ); ?></p>
     56                                                <p><?php esc_html_e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyeleven' ); ?></p>
    5757                                                <?php get_search_form(); ?>
    5858                                        </div><!-- .entry-content -->
    5959                                </article><!-- #post-0 -->
  • src/wp-content/themes/twentyeleven/searchform.php

    diff --git src/wp-content/themes/twentyeleven/searchform.php src/wp-content/themes/twentyeleven/searchform.php
    index bd8cdca1b4..047aff0f9f 100644
     
    88 */
    99?>
    1010        <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    11                 <label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleven' ); ?></label>
     11                <label for="s" class="assistive-text"><?php esc_html_e( 'Search', 'twentyeleven' ); ?></label>
    1212                <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
    1313                <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
    1414        </form>
  • src/wp-content/themes/twentyeleven/showcase.php

    diff --git src/wp-content/themes/twentyeleven/showcase.php src/wp-content/themes/twentyeleven/showcase.php
    index c867b830d9..9db28cc81f 100644
    get_header(); ?>  
    8080                                                ?>
    8181
    8282                                        <div class="featured-posts">
    83                                         <h1 class="showcase-heading"><?php _e( 'Featured Post', 'twentyeleven' ); ?></h1>
     83                                        <h1 class="showcase-heading"><?php esc_html_e( 'Featured Post', 'twentyeleven' ); ?></h1>
    8484
    8585                                                <?php
    8686                                                // Let's roll.
    get_header(); ?>  
    173173                                <?php endif; // End check for sticky posts. ?>
    174174
    175175                                <section class="recent-posts">
    176                                         <h1 class="showcase-heading"><?php _e( 'Recent Posts', 'twentyeleven' ); ?></h1>
     176                                        <h1 class="showcase-heading"><?php esc_html_e( 'Recent Posts', 'twentyeleven' ); ?></h1>
    177177
    178178                                        <?php
    179179
  • src/wp-content/themes/twentyeleven/sidebar.php

    diff --git src/wp-content/themes/twentyeleven/sidebar.php src/wp-content/themes/twentyeleven/sidebar.php
    index 6dbc7c5461..bc37d9aa61 100644
    if ( 'content' !== $current_layout ) :  
    1616                        <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
    1717
    1818                                <aside id="archives" class="widget">
    19                                         <h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3>
     19                                        <h3 class="widget-title"><?php esc_html_e( 'Archives', 'twentyeleven' ); ?></h3>
    2020                                        <ul>
    2121                                                <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
    2222                                        </ul>
    2323                                </aside>
    2424
    2525                                <aside id="meta" class="widget">
    26                                         <h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3>
     26                                        <h3 class="widget-title"><?php esc_html_e( 'Meta', 'twentyeleven' ); ?></h3>
    2727                                        <ul>
    2828                                                <?php wp_register(); ?>
    2929                                                <li><?php wp_loginout(); ?></li>
  • src/wp-content/themes/twentyeleven/single.php

    diff --git src/wp-content/themes/twentyeleven/single.php src/wp-content/themes/twentyeleven/single.php
    index 186bb378d8..bde18bba35 100644
    get_header(); ?>  
    1818                                        ?>
    1919
    2020                                        <nav id="nav-single">
    21                                                 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
     21                                                <h3 class="assistive-text"><?php esc_html_e( 'Post navigation', 'twentyeleven' ); ?></h3>
    2222                                                <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'twentyeleven' ) ); ?></span>
    2323                                                <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?></span>
    2424                                        </nav><!-- #nav-single -->
  • src/wp-content/themes/twentyeleven/tag.php

    diff --git src/wp-content/themes/twentyeleven/tag.php src/wp-content/themes/twentyeleven/tag.php
    index 23517622f0..0388b8f839 100644
    get_header(); ?>  
    6363
    6464                                <article id="post-0" class="post no-results not-found">
    6565                                        <header class="entry-header">
    66                                                 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
     66                                                <h1 class="entry-title"><?php esc_html_e( 'Nothing Found', 'twentyeleven' ); ?></h1>
    6767                                        </header><!-- .entry-header -->
    6868
    6969                                        <div class="entry-content">
    70                                                 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
     70                                                <p><?php esc_html_e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
    7171                                                <?php get_search_form(); ?>
    7272                                        </div><!-- .entry-content -->
    7373                                </article><!-- #post-0 -->