Make WordPress Core

Ticket #30319: 30319.patch

File 30319.patch, 2.8 KB (added by aprea, 9 years ago)
  • wp-content/themes/twentyfifteen/inc/template-tags.php

     
    7373                );
    7474
    7575                printf( '<span class="posted-on">%1$s<a href="%2$s" rel="bookmark">%3$s</a></span>',
    76                         sprintf( _x( '<span class="screen-reader-text">Posted on</span>', 'Used before publish date.', 'twentyfifteen' ) ),
     76                        sprintf( '<span class="screen-reader-text">%s</span>', esc_html_x( 'Posted on', 'Used before publish date.', 'twentyfifteen' ) ),
    7777                        esc_url( get_permalink() ),
    7878                        $time_string
    7979                );
     
    8282        if ( 'post' == get_post_type() ) {
    8383                if ( is_singular() || is_multi_author() ) {
    8484                        printf( '<span class="byline"><span class="author vcard">%1$s<a class="url fn n" href="%2$s">%3$s</a></span></span>',
    85                                 sprintf( _x( '<span class="screen-reader-text">Author</span>', 'Used before post author name.', 'twentyfifteen' ) ),
     85                                sprintf( '<span class="screen-reader-text">%s</span>', esc_html_x( 'Author', 'Used before post author name.', 'twentyfifteen' ) ),
    8686                                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    8787                                esc_html( get_the_author() )
    8888                        );
     
    9191                $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) );
    9292                if ( $categories_list && twentyfifteen_categorized_blog() ) {
    9393                        printf( '<span class="cat-links">%1$s%2$s</span>',
    94                                 sprintf( _x( '<span class="screen-reader-text">Categories</span>', 'Used before category names.', 'twentyfifteen' ) ),
     94                                sprintf( '<span class="screen-reader-text">%s</span>', esc_html_x( 'Categories', 'Used before category names.', 'twentyfifteen' ) ),
    9595                                $categories_list
    9696                        );
    9797                }
     
    9999                $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) );
    100100                if ( $tags_list ) {
    101101                        printf( '<span class="tags-links">%1$s%2$s</span>',
    102                                 sprintf( _x( '<span class="screen-reader-text">Tags</span>', 'Used before tag names.', 'twentyfifteen' ) ),
     102                                sprintf( '<span class="screen-reader-text">%s</span>', esc_html_x( 'Tags', 'Used before tag names.', 'twentyfifteen' ) ),
    103103                                $tags_list
    104104                        );
    105105                }
     
    110110                $metadata = wp_get_attachment_metadata();
    111111
    112112                printf( '<span class="full-size-link">%1$s<a href="%2$s">%3$s &times; %4$s</a></span>',
    113                         sprintf( _x( '<span class="screen-reader-text">Full size</span>', 'Used before full size attachment link.', 'twentyfifteen' ) ),
     113                        sprintf( '<span class="screen-reader-text">%s</span>', esc_html_x( 'Full size', 'Used before full size attachment link.', 'twentyfifteen' ) ),
    114114                        esc_url( wp_get_attachment_url() ),
    115115                        $metadata['width'],
    116116                        $metadata['height']