Changeset 30312
- Timestamp:
- 11/12/2014 05:20:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php
r30237 r30312 73 73 ); 74 74 75 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' )),75 printf( '<span class="posted-on"><span class="screen-reader-text">%1$s</span><a href="%2$s" rel="bookmark">%3$s</a></span>', 76 esc_html_x( 'Posted on', 'Used before publish date.', 'twentyfifteen' ), 77 77 esc_url( get_permalink() ), 78 78 $time_string … … 82 82 if ( 'post' == get_post_type() ) { 83 83 if ( is_singular() || is_multi_author() ) { 84 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' )),84 printf( '<span class="byline"><span class="author vcard"><span class="screen-reader-text">%1$s</span><a class="url fn n" href="%2$s">%3$s</a></span></span>', 85 esc_html_x( 'Author', 'Used before post author name.', 'twentyfifteen' ), 86 86 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 87 87 esc_html( get_the_author() ) … … 91 91 $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) ); 92 92 if ( $categories_list && twentyfifteen_categorized_blog() ) { 93 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' )),93 printf( '<span class="cat-links"><span class="screen-reader-text">%1$s</span>%2$s</span>', 94 esc_html_x( 'Categories', 'Used before category names.', 'twentyfifteen' ), 95 95 $categories_list 96 96 ); … … 99 99 $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) ); 100 100 if ( $tags_list ) { 101 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' )),101 printf( '<span class="tags-links"><span class="screen-reader-text">%1$s</span>%2$s</span>', 102 esc_html_x( 'Tags', 'Used before tag names.', 'twentyfifteen' ), 103 103 $tags_list 104 104 ); … … 110 110 $metadata = wp_get_attachment_metadata(); 111 111 112 printf( '<span class="full-size-link"> %1$s<a href="%2$s">%3$s × %4$s</a></span>',113 sprintf( _x( '<span class="screen-reader-text">Full size</span>', 'Used before full size attachment link.', 'twentyfifteen' )),112 printf( '<span class="full-size-link"><span class="screen-reader-text">%1$s</span><a href="%2$s">%3$s × %4$s</a></span>', 113 esc_html_x( 'Full size', 'Used before full size attachment link.', 'twentyfifteen' ), 114 114 esc_url( wp_get_attachment_url() ), 115 115 $metadata['width'],
Note: See TracChangeset
for help on using the changeset viewer.