diff --git a/inc/template-tags.php b/inc/template-tags.php index 47f895bc..598cba62 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -121,14 +121,20 @@ if ( ! function_exists( '_s_posted_on' ) ) : * @since _s 1.0 */ function _s_posted_on() { - printf( __( 'Posted on by ', '_s' ), + $time_string = ( get_the_time( 'U' ) == get_the_modified_time( 'U' ) ) + ? '' + : ''; + + printf( __( 'Posted on ' . $time_string . ' by ', '_s' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), 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() + get_the_author(), + esc_attr( get_the_modified_date( 'c' ) ), + esc_html( get_the_modified_date() ) ); } endif; diff --git a/style.css b/style.css index 0291319e..f71fd3ce 100644 --- a/style.css +++ b/style.css @@ -433,7 +433,8 @@ a:active { .entry-meta { clear: both; } -.byline { +.byline, +time.updated { display: none; } .single .byline,