From c8c60b3904150cf001ca10f0b7adeaf2dad25313 Mon Sep 17 00:00:00 2001 From: Philip Arthur Moore Date: Thu, 28 Feb 2013 01:04:34 -0600 Subject: [PATCH] Let us try this one more time. Revert all changes made to _s up until commit debefa merge until #131 has had a proper code review. --- inc/template-tags.php | 10 ++++++++-- style.css | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) 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,