From: Laury GvR Date: Mon, 12 Dec 2016 20:22:04 +0000 (-0500) Subject: Fixed empty $excludeCats error X-Git-Tag: v1.0.15^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=7769b765baa372f197f84940c9f636e3afcee208;p=WP-Themes%2Fshipwreckmuseum.git 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. --- 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; }