From 36ad7cb751f37e7b3df4e4076941351dbe35a3dd Mon Sep 17 00:00:00 2001 From: Ulrich Pogson Date: Wed, 10 Jul 2013 22:23:46 +0200 Subject: [PATCH] Improve "Posted on" translation string --- inc/template-tags.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index a07dafe2..a0143e24 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -177,13 +177,18 @@ function _s_posted_on() { esc_html( get_the_modified_date() ) ); - printf( __( 'Posted on %3$s by ', '_s' ), - esc_url( get_permalink() ), - esc_attr( get_the_time() ), - $time_string, - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), - esc_attr( sprintf( __( 'View all posts by %s', '_s' ), get_the_author() ) ), - get_the_author() + printf( __( 'Posted on %1$s by %2$s', '_s' ), + sprintf( '' . $time_string . '', + esc_url( get_permalink() ), + esc_attr( get_the_time() ), + esc_attr( get_the_date( 'c' ) ), + esc_html( get_the_date() ) + ), + sprintf( '%3$s', + esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), + esc_attr( sprintf( __( 'View all posts by %s', '_s' ), get_the_author() ) ), + esc_html( get_the_author() ) + ) ); } endif;