From 088830154ea91f5e182417ab85d0debab5065907 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Wed, 19 Sep 2018 08:46:26 +0200 Subject: [PATCH] Revert "Revert "Adjust byline for hidden date case"" This reverts commit 7783b14cb3f2592552d024666b1eb40a00376a43. --- inc/template-tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index d1fd83c..4a6bf17 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -37,7 +37,7 @@ if ( ! function_exists ( 'understrap_posted_on' ) ) { $byline = apply_filters( 'understrap_posted_by', sprintf( ' %1$s %3$s', - esc_html_x( 'by', 'post author', 'understrap' ), + $posted_on ? esc_html_x( 'by', 'post author', 'understrap' ) : esc_html_x( 'Posted by', 'post author', 'understrap' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) )