Fixing problem with going to shop home - returns 404 error due to invalid function...
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 27 Oct 2016 15:42:26 +0000 (11:42 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 27 Oct 2016 15:42:26 +0000 (11:42 -0400)
Added is_array test for second parameter of in_array() on line 27
Updated version in style.css

style.css
woocommerce/content-product_cat.php

index 9b91883..6af6017 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: Gilmore Car Museum
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme created for Gilmore Car Museum.
-Version: 1.2.27
+Version: 1.2.30
 */
index dc2a847..ceaf439 100644 (file)
@@ -24,7 +24,7 @@ global $woocommerce_loop;
 //$excludeCats = array(
 //     'souvenir'
 //);
-if ( is_shop() && in_array( $category->slug, $excludeCats ) ) {
+if ( is_shop() && is_array($excludeCats) && in_array( $category->slug, $excludeCats ) ) {
        return;
 }