diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection.php b/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection.php index 282002058ee..0681a7b249a 100644 --- a/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection.php +++ b/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection.php @@ -876,9 +876,9 @@ class ProductCollection extends AbstractBlock { // The post__in query needs special handling, as it should be an // intersection of all post__in queries. if ( - is_array( $acc['post__in'] ) && + is_array( $acc['post__in'] ?? null ) && ! empty( $acc['post__in'] ) && - is_array( $query['post__in'] ) && + is_array( $query['post__in'] ?? null ) && ! empty( $query['post__in'] ) ) { $result['post__in'] = array_intersect( $acc['post__in'], $query['post__in'] ); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3f31827f5ef..38a0e0fbccb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16058,7 +16058,7 @@ packages: resolution: {integrity: sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==} engines: {node: '>= 4.0'} os: [darwin] - deprecated: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2 + deprecated: Upgrade to fsevents v2 to mitigate potential security issues fsevents@2.1.3: resolution: {integrity: sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==} @@ -21807,7 +21807,7 @@ packages: react-with-direction@1.4.0: resolution: {integrity: sha512-ybHNPiAmaJpoWwugwqry9Hd1Irl2hnNXlo/2SXQBwbLn/jGMauMS2y9jw+ydyX5V9ICryCqObNSthNt5R94xpg==} peerDependencies: - react: ^17.0.2 + react: ^0.14 || ^15 || ^16 react-dom: ^0.14 || ^15 || ^16 react-with-styles-interface-css@4.0.3: