From 631099d6b2272101685bdb61f16da5cb03f4e4d0 Mon Sep 17 00:00:00 2001 From: Kathy Darling Date: Mon, 19 Jan 2015 14:39:59 +0100 Subject: [PATCH] changes tax_query to false for downloadable and virtual product filters. fixes #7152 --- includes/admin/class-wc-admin-post-types.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/admin/class-wc-admin-post-types.php b/includes/admin/class-wc-admin-post-types.php index 4bad2a7ed80..3d00f81d59f 100644 --- a/includes/admin/class-wc-admin-post-types.php +++ b/includes/admin/class-wc-admin-post-types.php @@ -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'; }