|
@@ -66,14 +66,14 @@ function radcliffe_2_entry_footer() {
|
|
if ( 'post' === get_post_type() ) {
|
|
if ( 'post' === get_post_type() ) {
|
|
/* translators: used between list items, there is a space after the comma */
|
|
/* translators: used between list items, there is a space after the comma */
|
|
$categories_list = get_the_category_list( esc_html__( ', ', 'radcliffe-2' ) );
|
|
$categories_list = get_the_category_list( esc_html__( ', ', 'radcliffe-2' ) );
|
|
- if ( $categories_list ) {
|
|
|
|
|
|
+ if ( $categories_list && ! is_wp_error( $categories_list ) ) {
|
|
/* translators: 1: list of categories. */
|
|
/* translators: 1: list of categories. */
|
|
echo '<span class="cat-links">' . radcliffe_2_get_svg( array( 'icon' => 'category', 'title' => esc_html__( 'Categories', 'radcliffe-2' ) ) ) . $categories_list . '</span>';
|
|
echo '<span class="cat-links">' . radcliffe_2_get_svg( array( 'icon' => 'category', 'title' => esc_html__( 'Categories', 'radcliffe-2' ) ) ) . $categories_list . '</span>';
|
|
}
|
|
}
|
|
|
|
|
|
/* translators: used between list items, there is a space after the comma */
|
|
/* translators: used between list items, there is a space after the comma */
|
|
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'radcliffe-2' ) );
|
|
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'radcliffe-2' ) );
|
|
- if ( $tags_list ) {
|
|
|
|
|
|
+ if ( $tags_list && ! is_wp_error( $tags_list ) ) {
|
|
/* translators: 1: list of tags. */
|
|
/* translators: 1: list of tags. */
|
|
echo '<span class="tags-links">' . radcliffe_2_get_svg( array( 'icon' => 'tag', 'title' => esc_html__( 'Tags', 'radcliffe-2' ) ) ) . $tags_list . '</span>';
|
|
echo '<span class="tags-links">' . radcliffe_2_get_svg( array( 'icon' => 'tag', 'title' => esc_html__( 'Tags', 'radcliffe-2' ) ) ) . $tags_list . '</span>';
|
|
}
|
|
}
|