Fixed a potential 404 for shops excluding cats
authorLaury GvR <laury@gaslightmedia.com>
Thu, 27 Oct 2016 20:36:33 +0000 (16:36 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 27 Oct 2016 20:36:33 +0000 (16:36 -0400)
commit164c44860da90e4ecebf78d57e2627748de8d8fa
tree540ef65943518072e942d2072e39ee3fbae3bd3a
parent3c821782224d9f57e8a879e2656f75167e2575f9
Fixed a potential 404 for shops excluding cats

The Gilmore shop was producing 404 errors on the main shop page
under certain conditions. Traced this to an in_array() call where
the second parameter was not an array at the time. Added a test to
make sure the parameter was an array before that function call and
that cleared the problem.
woocommerce/content-product_cat.php