From 7769b765baa372f197f84940c9f636e3afcee208 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 12 Dec 2016 15:22:04 -0500 Subject: [PATCH] Fixed empty $excludeCats error A while ago, excluded categories array '$excludeCats' was commented out, but still being used as a parameter of a function thereafter. --- woocommerce/content-product_cat.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/woocommerce/content-product_cat.php b/woocommerce/content-product_cat.php index c8df45a..3e8e410 100644 --- a/woocommerce/content-product_cat.php +++ b/woocommerce/content-product_cat.php @@ -21,9 +21,7 @@ global $woocommerce_loop; * Enter the slug of a category to exclude in the & $excludeCats array below. */ -//$excludeCats = array( -// 'souvenir' -//); +$excludeCats = ''; if ( is_shop() && is_array($excludeCats) && in_array( $category->slug, $excludeCats ) ) { return; } -- 2.17.1