diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index 442821fa05f..b6f7b781b5f 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -684,9 +684,10 @@ if ( ! function_exists( 'woocommerce_taxonomy_archive_description' ) ) { */ function woocommerce_taxonomy_archive_description() { if ( is_product_taxonomy() && 0 === absint( get_query_var( 'paged' ) ) ) { - $description = wc_format_content( term_description() ); - if ( $description ) { - echo '
' . $description . '
'; // WPCS: XSS ok. + $term = get_queried_object(); + + if ( $term && ! empty( $term->description ) ) { + echo '
' . wc_format_content( $term->description ) . '
'; // WPCS: XSS ok. } } }