From 3a63ae0cb2b209b7c3eda8d7ce079c81a4203be4 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Tue, 16 Dec 2014 13:24:38 +0000 Subject: [PATCH] Twenty Fifteen: Don't escape translated strings. Replace every unnecessary instance of `esc_html_x()` with just `_x()`. see #30724. git-svn-id: https://develop.svn.wordpress.org/trunk@30899 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfifteen/inc/template-tags.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/inc/template-tags.php b/src/wp-content/themes/twentyfifteen/inc/template-tags.php index 2c4d5e48c4..e34629476b 100644 --- a/src/wp-content/themes/twentyfifteen/inc/template-tags.php +++ b/src/wp-content/themes/twentyfifteen/inc/template-tags.php @@ -52,7 +52,7 @@ function twentyfifteen_entry_meta() { $format = get_post_format(); if ( current_theme_supports( 'post-formats', $format ) ) { printf( '%1$s%3$s', - sprintf( '%s ', esc_html_x( 'Format', 'Used before post format.', 'twentyfifteen' ) ), + sprintf( '%s ', _x( 'Format', 'Used before post format.', 'twentyfifteen' ) ), esc_url( get_post_format_link( $format ) ), get_post_format_string( $format ) ); @@ -73,7 +73,7 @@ function twentyfifteen_entry_meta() { ); printf( '%1$s %3$s', - esc_html_x( 'Posted on', 'Used before publish date.', 'twentyfifteen' ), + _x( 'Posted on', 'Used before publish date.', 'twentyfifteen' ), esc_url( get_permalink() ), $time_string ); @@ -82,7 +82,7 @@ function twentyfifteen_entry_meta() { if ( 'post' == get_post_type() ) { if ( is_singular() || is_multi_author() ) { printf( '%1$s %3$s', - esc_html_x( 'Author', 'Used before post author name.', 'twentyfifteen' ), + _x( 'Author', 'Used before post author name.', 'twentyfifteen' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); @@ -91,7 +91,7 @@ function twentyfifteen_entry_meta() { $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) ); if ( $categories_list && twentyfifteen_categorized_blog() ) { printf( '%1$s %2$s', - esc_html_x( 'Categories', 'Used before category names.', 'twentyfifteen' ), + _x( 'Categories', 'Used before category names.', 'twentyfifteen' ), $categories_list ); } @@ -99,7 +99,7 @@ function twentyfifteen_entry_meta() { $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) ); if ( $tags_list ) { printf( '%1$s %2$s', - esc_html_x( 'Tags', 'Used before tag names.', 'twentyfifteen' ), + _x( 'Tags', 'Used before tag names.', 'twentyfifteen' ), $tags_list ); } @@ -110,7 +110,7 @@ function twentyfifteen_entry_meta() { $metadata = wp_get_attachment_metadata(); printf( '%1$s %3$s × %4$s', - esc_html_x( 'Full size', 'Used before full size attachment link.', 'twentyfifteen' ), + _x( 'Full size', 'Used before full size attachment link.', 'twentyfifteen' ), esc_url( wp_get_attachment_url() ), $metadata['width'], $metadata['height']