From 0c7c4323fa9b767638bfa930ec23406b5f459df9 Mon Sep 17 00:00:00 2001 From: mboynes Date: Sun, 21 Apr 2024 06:04:22 +0000 Subject: [PATCH] Syncing twentytwentyone --- themes/twentytwentyone/inc/template-tags.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/twentytwentyone/inc/template-tags.php b/themes/twentytwentyone/inc/template-tags.php index fbd10bcb..6c93ead8 100644 --- a/themes/twentytwentyone/inc/template-tags.php +++ b/themes/twentytwentyone/inc/template-tags.php @@ -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. */ '' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '', @@ -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. */ '' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '',