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
This commit is contained in:
parent
f948218d0f
commit
58075601c6
@ -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' ),
|
||||
'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . get_the_author() . '</a></span>'
|
||||
);
|
||||
|
||||
@ -45,7 +46,11 @@ function twentyseventeen_time_link() {
|
||||
);
|
||||
|
||||
// Wrap the time string in a link, and preface it with 'Posted on'.
|
||||
return '<span class="screen-reader-text">' . _x( 'Posted on', 'post date', 'twentyseventeen' ) . '</span> <a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>';
|
||||
return sprintf(
|
||||
/* translators: %s: post date */
|
||||
__( '<span class="screen-reader-text">Posted on</span> %s', 'twentyseventeen' ),
|
||||
'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
|
||||
);
|
||||
}
|
||||
endif;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user