We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00b5895 commit d2ac400Copy full SHA for d2ac400
1 file changed
themes/osi/inc/template-tags.php
@@ -10,11 +10,13 @@
10
if ( ! function_exists( 'osi_posted_on' ) ) :
11
/**
12
* Prints HTML with meta information for the current post-date/time and author.
13
+ *
14
+ * @param string $format Date format.
15
*/
16
function osi_posted_on( $format = '' ) {
17
18
$time_string = '<time class="byline--date entry-date published" datetime="%1$s">%2$s</time>';
-
19
+
20
// Don't display the updated date for blog posts.
21
if ( 'post' !== get_post_type() ) {
22
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
@@ -36,7 +38,6 @@ function osi_posted_on( $format = '' ) {
36
38
);
37
39
40
echo '<span class="posted-on">' . $posted_on . '</span>'; // phpcs:ignore
41
}
42
endif;
43
0 commit comments