Fixed a potential 404 for shops excluding cats
authorLaury GvR <laury@gaslightmedia.com>
Thu, 27 Oct 2016 20:33:10 +0000 (16:33 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 27 Oct 2016 20:33:10 +0000 (16:33 -0400)
commitadd9cce1201b5028198dde57e359beac6062ca5b
treee90c6161852cdfd0dd6a87ddf3b41223f4296ed6
parent91cc7f220faac902187d2fd42a5c9f7859e1dd21
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