From 259f215b072dcdb7fc2a830566211e2de223558e Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Sat, 3 Sep 2011 23:41:52 +0100 Subject: [PATCH] Fixed bug where hidden products were hidden in admin --- woocommerce_query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce_query.php b/woocommerce_query.php index 5a777df55f6..192b4e5bc51 100644 --- a/woocommerce_query.php +++ b/woocommerce_query.php @@ -21,7 +21,7 @@ $woocommerce_query['layered_nav_product_ids'] = array(); // Stores posts matchin /** * Query the products, applying sorting/ordering etc. This applies to the main wordpress loop */ -add_filter( 'parse_query', 'woocommerce_parse_query' ); +if (!is_admin()) add_filter( 'parse_query', 'woocommerce_parse_query' ); function woocommerce_parse_query( $q ) {