From bf8b999a8057fd5b250058b23c78632004a7c963 Mon Sep 17 00:00:00 2001 From: Florian Ludwig Date: Fri, 22 Aug 2014 23:01:25 +0200 Subject: [PATCH] Fixed jQuery call --- includes/widgets/class-wc-widget-product-categories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/widgets/class-wc-widget-product-categories.php b/includes/widgets/class-wc-widget-product-categories.php index c57f07c3ccc..6b17835baf2 100644 --- a/includes/widgets/class-wc-widget-product-categories.php +++ b/includes/widgets/class-wc-widget-product-categories.php @@ -201,7 +201,7 @@ class WC_Widget_Product_Categories extends WC_Widget { wc_enqueue_js(" jQuery('.dropdown_product_cat').change(function(){ - if($(this).val() != '') { + if(jQuery(this).val() != '') { location.href = '" . home_url() . "/?product_cat=' + jQuery(this).val(); } });