From 1a957f9faa7491b5854ddc6a9a3747e20c63fcda Mon Sep 17 00:00:00 2001 From: Andrew White Date: Mon, 6 Feb 2012 12:24:40 +0000 Subject: [PATCH 1/2] Apply the current-cat-parent class to the top level category The category widget does not add a class to the topmost category to indicate that it is the parent of the current category. This commit fixes this by applying the standard 'current-cat-parent' class. --- widgets/widget-product_categories.php | 1 + 1 file changed, 1 insertion(+) diff --git a/widgets/widget-product_categories.php b/widgets/widget-product_categories.php index dfe52d7c3de..27d08297485 100644 --- a/widgets/widget-product_categories.php +++ b/widgets/widget-product_categories.php @@ -104,6 +104,7 @@ class WooCommerce_Widget_Product_Categories extends WP_Widget { echo '
  • '.$cat->name.''; From 9572ef1f2d3d9556039fc481d775948d4201f842 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Mon, 6 Feb 2012 13:14:52 +0000 Subject: [PATCH 2/2] Don't apply class when the top level category is selected. --- widgets/widget-product_categories.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/widget-product_categories.php b/widgets/widget-product_categories.php index 27d08297485..52fe01545e4 100644 --- a/widgets/widget-product_categories.php +++ b/widgets/widget-product_categories.php @@ -104,7 +104,9 @@ class WooCommerce_Widget_Product_Categories extends WP_Widget { echo '
  • '.$cat->name.'';