From 00570514d4f31d39a33088100b449e73952bf46e Mon Sep 17 00:00:00 2001 From: Slobodan Manic Date: Sun, 15 Jun 2014 13:20:06 +0200 Subject: [PATCH] Adds .updated class to .entry-date when needed --- inc/template-tags.php | 4 +++- style.css | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index 0ff39e25..74d43599 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -66,9 +66,11 @@ if ( ! function_exists( '_s_posted_on' ) ) : * Prints HTML with meta information for the current post-date/time and author. */ function _s_posted_on() { - $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { + $time_string = ''; $time_string .= ''; + } else { + $time_string = ''; } $time_string = sprintf( $time_string, diff --git a/style.css b/style.css index a61fe8d6..2b7ed521 100644 --- a/style.css +++ b/style.css @@ -555,7 +555,7 @@ a:active { margin: 0 0 1.5em; } .byline, -.updated { +.updated:not(.published) { display: none; } .single .byline,