diff --git a/plugins/woocommerce-blocks/src/BlockTypes/ProductCollection.php b/plugins/woocommerce-blocks/src/BlockTypes/ProductCollection.php index b7a785b9101..b4a8b4e6a37 100644 --- a/plugins/woocommerce-blocks/src/BlockTypes/ProductCollection.php +++ b/plugins/woocommerce-blocks/src/BlockTypes/ProductCollection.php @@ -174,7 +174,7 @@ class ProductCollection extends AbstractBlock { $block_context_query = $block->context['query']; // phpcs:ignore WordPress.DB.SlowDBQuery - $block_context_query['tax_query'] = $query['tax_query']; + $block_context_query['tax_query'] = ! empty( $query['tax_query'] ) ? $query['tax_query'] : array(); return $this->get_final_frontend_query( $block_context_query, $page ); }