Index: trunk/src/wp-content/themes/twentynineteen/inc/template-tags.php =================================================================== --- branches/5.0/src/wp-content/themes/twentynineteen/inc/template-tags.php (revision 43808) +++ trunk/src/wp-content/themes/twentynineteen/inc/template-tags.php (revision 44149) @@ -5,4 +5,5 @@ * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ @@ -26,5 +27,5 @@ printf( - '%1$s' . $time_string . '', + '%1$s%3$s', twentynineteen_get_icon_svg( 'watch', 16 ), esc_url( get_permalink() ), @@ -43,5 +44,5 @@ /* translators: 1: SVG icon. 2: post author, only visible to screen readers. 3: author link. */ twentynineteen_get_icon_svg( 'person', 16 ), - esc_html__( 'Posted by', 'twentynineteen' ), + __( 'Posted by', 'twentynineteen' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) @@ -73,11 +74,15 @@ function twentynineteen_entry_footer() { - // Posted by - twentynineteen_posted_by(); - - // Hide category and tag text for pages. + // Hide author, post date, category and tag text for pages. if ( 'post' === get_post_type() ) { + + // Posted by + twentynineteen_posted_by(); + + // Posted on + twentynineteen_posted_on(); + /* translators: used between list items, there is a space after the comma. */ - $categories_list = get_the_category_list( esc_html__( ', ', 'twentynineteen' ) ); + $categories_list = get_the_category_list( __( ', ', 'twentynineteen' ) ); if ( $categories_list ) { /* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of categories. */ @@ -85,5 +90,5 @@ '%1$s%2$s%3$s', twentynineteen_get_icon_svg( 'archive', 16 ), - esc_html__( 'Posted in', 'twentynineteen' ), + __( 'Posted in', 'twentynineteen' ), $categories_list ); // WPCS: XSS OK. @@ -91,11 +96,11 @@ /* translators: used between list items, there is a space after the comma. */ - $tags_list = get_the_tag_list( '', esc_html__( ', ', 'twentynineteen' ) ); + $tags_list = get_the_tag_list( '', __( ', ', 'twentynineteen' ) ); if ( $tags_list ) { /* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of tags. */ printf( - '%1$s%2$s %3$s', + ' ', twentynineteen_get_icon_svg( 'tag', 16 ), - esc_html__( 'Tags:', 'twentynineteen' ), + __( 'Tags:', 'twentynineteen' ), $tags_list ); // WPCS: XSS OK. @@ -151,18 +156,11 @@ ?> - + %s', get_avatar( $id_or_email, twentynineteen_get_avatar_size() ) ); } @@ -201,13 +188,15 @@ */ function twentynineteen_discussion_avatars_list( $comment_authors ) { - if ( ! empty( $comment_authors ) ) { - $out = array( '