diff --git a/varia/inc/template-tags.php b/varia/inc/template-tags.php index 052b4895c3..b1e3694715 100644 --- a/varia/inc/template-tags.php +++ b/varia/inc/template-tags.php @@ -97,7 +97,7 @@ function varia_entry_meta() { /* translators: used between list items, there is a space after the comma. */ $tags_list = get_the_tag_list( '', __( ', ', 'varia' ) ); - if ( $tags_list ) { + if ( is_string( $tags_list ) ) { printf( /* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of tags. */ '%1$s%2$s%3$s', @@ -162,7 +162,7 @@ function varia_entry_footer() { /* translators: used between list items, there is a space after the comma. */ $tags_list = get_the_tag_list( '', __( ', ', 'varia' ) ); - if ( $tags_list ) { + if ( is_string( $tags_list ) ) { printf( /* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of tags. */ '%1$s%2$s%3$s',