From 4c78c89aefd487d3055307db820c92545b69600f Mon Sep 17 00:00:00 2001 From: Luigi Teschio Date: Mon, 22 May 2023 14:17:56 +0200 Subject: [PATCH] Enable blockified conversation to archive templates (#9509) --- assets/js/blocks/classic-template/archive-product.ts | 3 +-- assets/js/blocks/classic-template/product-search-results.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/assets/js/blocks/classic-template/archive-product.ts b/assets/js/blocks/classic-template/archive-product.ts index f38439ae12a..dd93f0b10e0 100644 --- a/assets/js/blocks/classic-template/archive-product.ts +++ b/assets/js/blocks/classic-template/archive-product.ts @@ -7,7 +7,6 @@ import { type BlockInstance, } from '@wordpress/blocks'; import { isWpVersion } from '@woocommerce/settings'; -import { isExperimentalBuild } from '@woocommerce/block-settings'; import { __, sprintf } from '@wordpress/i18n'; /** @@ -64,7 +63,7 @@ const getBlockifiedTemplateWithTermDescription = ( const isConversionPossible = () => { // Blockification is possible for the WP version 6.1 and above, // which are the versions the Products block supports. - return isExperimentalBuild() && isWpVersion( '6.1', '>=' ); + return isWpVersion( '6.1', '>=' ); }; const getDescriptionAllowingConversion = ( templateTitle: string ) => diff --git a/assets/js/blocks/classic-template/product-search-results.ts b/assets/js/blocks/classic-template/product-search-results.ts index 993c4af8fee..44587355401 100644 --- a/assets/js/blocks/classic-template/product-search-results.ts +++ b/assets/js/blocks/classic-template/product-search-results.ts @@ -8,7 +8,6 @@ import { type InnerBlockTemplate, } from '@wordpress/blocks'; import { isWpVersion } from '@woocommerce/settings'; -import { isExperimentalBuild } from '@woocommerce/block-settings'; import { __, sprintf } from '@wordpress/i18n'; /** @@ -111,7 +110,7 @@ const getBlockifiedTemplate = ( inheritedAttributes: InheritedAttributes ) => const isConversionPossible = () => { // Blockification is possible for the WP version 6.1 and above, // which are the versions the Products block supports. - return isExperimentalBuild() && isWpVersion( '6.1', '>=' ); + return isWpVersion( '6.1', '>=' ); }; const getDescriptionAllowingConversion = ( templateTitle: string ) =>