_s: Simplify 'Posted on' string for easier translation and add a HTML

wrapper for easier CSS manipulation. Props @grappler. Fixes #253.
This commit is contained in:
obenland 2013-07-11 08:42:01 -07:00
parent 36ad7cb751
commit d279972455
1 changed files with 2 additions and 3 deletions

View File

@ -178,11 +178,10 @@ function _s_posted_on() {
); );
printf( __( '<span class="posted-on">Posted on %1$s</span><span class="byline"> by %2$s</span>', '_s' ), printf( __( '<span class="posted-on">Posted on %1$s</span><span class="byline"> by %2$s</span>', '_s' ),
sprintf( '<a href="%1$s" title="%2$s" rel="bookmark">' . $time_string . '</a>', sprintf( '<a href="%1$s" title="%2$s" rel="bookmark">%3$s</a>',
esc_url( get_permalink() ), esc_url( get_permalink() ),
esc_attr( get_the_time() ), esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ), $time_string
esc_html( get_the_date() )
), ),
sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),