projects
/
WP-Themes
/
shipwreckmuseum.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cf32f9
)
Fixed empty $excludeCats error
author
Laury GvR
<laury@gaslightmedia.com>
Mon, 12 Dec 2016 20:22:04 +0000
(15:22 -0500)
committer
Laury 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
patch
|
blob
|
history
diff --git
a/woocommerce/content-product_cat.php
b/woocommerce/content-product_cat.php
index
c8df45a
..
3e8e410
100644
(file)
--- a/
woocommerce/content-product_cat.php
+++ b/
woocommerce/content-product_cat.php
@@
-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;
}