From 26d40f233614224cff1a2d6f6733bfb1a4998595 Mon Sep 17 00:00:00 2001 From: Florian Ludwig Date: Wed, 13 Aug 2014 22:16:18 +0200 Subject: [PATCH] Class instead of id for product categories widget Also rewrote plain old JS to jQuery --- includes/wc-term-functions.php | 2 +- .../widgets/class-wc-widget-product-categories.php | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/includes/wc-term-functions.php b/includes/wc-term-functions.php index 920014f7d5d..ac393b75554 100644 --- a/includes/wc-term-functions.php +++ b/includes/wc-term-functions.php @@ -142,8 +142,8 @@ function wc_product_dropdown_categories( $args = array(), $deprecated_hierarchic return; } - $output = ""; $output .= wc_walk_category_dropdown_tree( $terms, 0, $args ); if ( $args['show_uncategorized'] ) { $output .= ''; diff --git a/includes/widgets/class-wc-widget-product-categories.php b/includes/widgets/class-wc-widget-product-categories.php index 021e5cfde1c..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 ) ); ?>