From fb61a0cb12af01f32c24c1666750778c56bdfa80 Mon Sep 17 00:00:00 2001 From: Lucio Giannotta Date: Thu, 5 Jan 2023 23:57:35 +0100 Subject: [PATCH] Remove compatibility from all patch versions of 6.0 --- assets/js/blocks/product-query/index.tsx | 2 +- assets/js/blocks/product-query/variations/product-query.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/blocks/product-query/index.tsx b/assets/js/blocks/product-query/index.tsx index 9bffb0d9f64..af32b0c1b2a 100644 --- a/assets/js/blocks/product-query/index.tsx +++ b/assets/js/blocks/product-query/index.tsx @@ -36,7 +36,7 @@ function registerProductQueryElementsNamespace( return props; } -if ( isWpVersion( '6.0', '>' ) ) { +if ( isWpVersion( '6.1', '>=' ) ) { addFilter( 'blocks.registerBlockType', 'core/custom-class-name/attribute', diff --git a/assets/js/blocks/product-query/variations/product-query.tsx b/assets/js/blocks/product-query/variations/product-query.tsx index 4911124db2c..73362b8bf0d 100644 --- a/assets/js/blocks/product-query/variations/product-query.tsx +++ b/assets/js/blocks/product-query/variations/product-query.tsx @@ -19,7 +19,7 @@ import { const VARIATION_NAME = 'woocommerce/product-query'; -if ( isWpVersion( '6.0', '>' ) ) { +if ( isWpVersion( '6.1', '>=' ) ) { registerBlockVariation( QUERY_LOOP_ID, { description: __( 'A block that displays a selection of products in your store.',