Skip to content

Commit

Permalink
Syncing twentytwentyone
Browse files Browse the repository at this point in the history
  • Loading branch information
mboynes committed Apr 21, 2024
1 parent 1c531a6 commit 0c7c432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/twentytwentyone/inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function twenty_twenty_one_entry_meta_footer() {
}

$tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
if ( $tags_list ) {
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
printf(
/* translators: %s: List of tags. */
'<span class="tags-links">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',
Expand Down Expand Up @@ -152,7 +152,7 @@ function twenty_twenty_one_entry_meta_footer() {
}

$tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
if ( $tags_list ) {
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
printf(
/* translators: %s: List of tags. */
'<span class="tags-links">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',
Expand Down

0 comments on commit 0c7c432

Please sign in to comment.