Fixed bug where hidden products were hidden in admin

This commit is contained in:
Mike Jolley 2011-09-03 23:41:52 +01:00
parent cdc04c075f
commit 259f215b07
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {