diff --git a/widgets/widget-product_categories.php b/widgets/widget-product_categories.php index 249c4caeebb..c26dd26dbad 100644 --- a/widgets/widget-product_categories.php +++ b/widgets/widget-product_categories.php @@ -119,13 +119,15 @@ class WooCommerce_Widget_Product_Categories extends WP_Widget { $subcat_args['child_of'] = $cat->term_id; $subcat_args['hierarchical'] = 1; $subcat_args['show_option_none'] = false; + $subcat_args['echo'] = false; unset( $subcat_args['parent'] ); - echo '