' . wp_kses_post( $tags_list ) . '
'; // WPCS: XSS OK.
}
}
}
}
endif;
if ( ! function_exists( 'gucherry_blog_post_thumbnail' ) ) :
/**
* Displays an optional post thumbnail.
*
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*/
function gucherry_blog_post_thumbnail() {
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
return;
}
if ( is_singular() || is_page() ) {
?>