This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
assets/js/blocks/classic-template Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 77 type BlockInstance ,
88} from '@wordpress/blocks' ;
99import { isWpVersion } from '@woocommerce/settings' ;
10+ import { isExperimentalBuild } from '@woocommerce/block-settings' ;
1011import { __ , sprintf } from '@wordpress/i18n' ;
1112
1213/**
@@ -74,7 +75,7 @@ const getBlockifiedTemplateWithTermDescription = (
7475const isConversionPossible = ( ) => {
7576 // Blockification is possible for the WP version 6.1 and above,
7677 // which are the versions the Products block supports.
77- return isWpVersion ( '6.1' , '>=' ) ;
78+ return isExperimentalBuild ( ) && isWpVersion ( '6.1' , '>=' ) ;
7879} ;
7980
8081const getDescriptionAllowingConversion = ( templateTitle : string ) =>
Original file line number Diff line number Diff line change 88 type InnerBlockTemplate ,
99} from '@wordpress/blocks' ;
1010import { isWpVersion } from '@woocommerce/settings' ;
11+ import { isExperimentalBuild } from '@woocommerce/block-settings' ;
1112import { __ , sprintf } from '@wordpress/i18n' ;
1213
1314/**
@@ -122,7 +123,7 @@ const getBlockifiedTemplate = ( inheritedAttributes: InheritedAttributes ) => {
122123const isConversionPossible = ( ) => {
123124 // Blockification is possible for the WP version 6.1 and above,
124125 // which are the versions the Products block supports.
125- return isWpVersion ( '6.1' , '>=' ) ;
126+ return isExperimentalBuild ( ) && isWpVersion ( '6.1' , '>=' ) ;
126127} ;
127128
128129const getDescriptionAllowingConversion = ( templateTitle : string ) =>
You can’t perform that action at this time.
0 commit comments