Don't need both cases

This commit is contained in:
Mike Jolley 2016-08-10 10:36:51 +01:00
parent b08d0bc1d2
commit 51f3efd5c4
1 changed files with 1 additions and 1 deletions

View File

@ -620,7 +620,7 @@ if ( ! function_exists( 'woocommerce_taxonomy_archive_description' ) ) {
* @subpackage Archives
*/
function woocommerce_taxonomy_archive_description() {
if ( ( is_tax( array( 'product_cat', 'product_tag' ) ) || is_product_taxonomy() ) && 0 === absint( get_query_var( 'paged' ) ) ) {
if ( is_product_taxonomy() && 0 === absint( get_query_var( 'paged' ) ) ) {
$description = wc_format_content( term_description() );
if ( $description ) {
echo '<div class="term-description">' . $description . '</div>';