changes tax_query to false for downloadable and virtual product filters. fixes #7152

This commit is contained in:
Kathy Darling 2015-01-19 14:39:59 +01:00
parent 20a2b2d079
commit 631099d6b2
1 changed files with 2 additions and 0 deletions

View File

@ -1608,10 +1608,12 @@ class WC_Admin_Post_Types {
// Subtypes
if ( 'downloadable' == $query->query_vars['product_type'] ) {
$query->query_vars['product_type'] = '';
$query->is_tax = false;
$query->query_vars['meta_value'] = 'yes';
$query->query_vars['meta_key'] = '_downloadable';
} elseif ( 'virtual' == $query->query_vars['product_type'] ) {
$query->query_vars['product_type'] = '';
$query->is_tax = false;
$query->query_vars['meta_value'] = 'yes';
$query->query_vars['meta_key'] = '_virtual';
}