Fixed empty $excludeCats error
authorLaury GvR <laury@gaslightmedia.com>
Mon, 12 Dec 2016 20:22:04 +0000 (15:22 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 12 Dec 2016 20:22:04 +0000 (15:22 -0500)
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

index c8df45a..3e8e410 100644 (file)
@@ -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;
 }