From 58075601c687fbdeaa59dff627b4ecdc11009d84 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Mon, 24 Oct 2016 17:26:45 +0000 Subject: [PATCH] Twenty Seventeen: Fixes incorrect use of _x() There is an incorrect use in twentyseventeen_posted_on(). This fixes that. Props ocean90, dineshc, mbelchev, davidakennedy Fixes #38383 git-svn-id: https://develop.svn.wordpress.org/trunk@38885 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyseventeen/inc/template-tags.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/wp-content/themes/twentyseventeen/inc/template-tags.php b/src/wp-content/themes/twentyseventeen/inc/template-tags.php index 9848fd59b3..7a599d1fa0 100644 --- a/src/wp-content/themes/twentyseventeen/inc/template-tags.php +++ b/src/wp-content/themes/twentyseventeen/inc/template-tags.php @@ -17,7 +17,8 @@ function twentyseventeen_posted_on() { // Get the author name; wrap it in a link. $byline = sprintf( - _x( 'by %s', 'post author', 'twentyseventeen' ), + /* translators: %s: post author */ + __( 'by %s', 'twentyseventeen' ), '' . get_the_author() . '' ); @@ -45,7 +46,11 @@ function twentyseventeen_time_link() { ); // Wrap the time string in a link, and preface it with 'Posted on'. - return '' . _x( 'Posted on', 'post date', 'twentyseventeen' ) . ' ' . $time_string . ''; + return sprintf( + /* translators: %s: post date */ + __( 'Posted on %s', 'twentyseventeen' ), + '' . $time_string . '' + ); } endif;