diff --git a/includes/wc-term-functions.php b/includes/wc-term-functions.php index 920014f7d5d..0c84748b0d2 100644 --- a/includes/wc-term-functions.php +++ b/includes/wc-term-functions.php @@ -142,7 +142,7 @@ function wc_product_dropdown_categories( $args = array(), $deprecated_hierarchic return; } - $output = ""; $output .= ''; $output .= wc_walk_category_dropdown_tree( $terms, 0, $args ); if ( $args['show_uncategorized'] ) { diff --git a/includes/widgets/class-wc-widget-product-categories.php b/includes/widgets/class-wc-widget-product-categories.php index 5a1e7abac65..30e9247a4bc 100644 --- a/includes/widgets/class-wc-widget-product-categories.php +++ b/includes/widgets/class-wc-widget-product-categories.php @@ -200,15 +200,9 @@ class WC_Widget_Product_Categories extends WC_Widget { wc_product_dropdown_categories( apply_filters( 'woocommerce_product_categories_widget_dropdown_args', $dropdown_args ) ); ?>