Fixed a potential 404 for shops excluding cats
authorLaury GvR <laury@gaslightmedia.com>
Thu, 27 Oct 2016 20:26:08 +0000 (16:26 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 27 Oct 2016 20:26:08 +0000 (16:26 -0400)
commit1de2fcc2b81cdb87e17d722ca4f701b3277a7dec
tree1bdb53bba6b6a6e3757c0866602e96514e97cc19
parent945caec4ef04231548c42c0601fdbbc8d2556ea5
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