Unused variable

This commit is contained in:
Mike Jolley 2017-03-27 17:32:00 +01:00
parent be45bffd45
commit 57f733388c
1 changed files with 1 additions and 2 deletions

View File

@ -563,9 +563,8 @@ class WC_Query {
}
}
$product_visibility_terms = wc_get_product_visibility_term_ids();
$product_visibility_terms = wc_get_product_visibility_term_ids();
$product_visibility_not_in = array( is_search() && $main_query ? $product_visibility_terms['exclude-from-search'] : $product_visibility_terms['exclude-from-catalog'] );
$product_visibility_in = array();
// Hide out of stock products.
if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) ) {