Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Merge branch 'trunk' into add/enable-blockified-templates-as-default
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux authored May 22, 2023
2 parents ba3fec1 + 4c78c89 commit 07ecc19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions assets/js/blocks/classic-template/archive-product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/**
Expand Down Expand Up @@ -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 ) =>
Expand Down
3 changes: 1 addition & 2 deletions assets/js/blocks/classic-template/product-search-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/**
Expand Down Expand Up @@ -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 ) =>
Expand Down

0 comments on commit 07ecc19

Please sign in to comment.