diff --git a/src/BlockTypes/ProductQuery.php b/src/BlockTypes/ProductQuery.php index 1d32a3c44ca..f299b04a003 100644 --- a/src/BlockTypes/ProductQuery.php +++ b/src/BlockTypes/ProductQuery.php @@ -177,7 +177,27 @@ private function merge_queries( ...$queries ) { $valid_query_vars = array_keys( ( new WP_Query() )->fill_query_vars( array() ) ); $valid_query_vars = array_merge( $valid_query_vars, - array( 'meta_query', 'tax_query', 'date_query' ) + // fill_query_vars doesn't include these vars so we need to add them manually. + array( + 'date_query', + 'exact', + 'ignore_sticky_posts', + 'lazy_load_term_meta', + 'meta_compare_key', + 'meta_compare', + 'meta_query', + 'meta_type_key', + 'meta_type', + 'nopaging', + 'offset', + 'order', + 'orderby', + 'page', + 'post_type', + 'posts_per_page', + 'suppress_filters', + 'tax_query', + ) ); $merged_query = array_reduce(