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

Commit

Permalink
Remove isExperimentalBuild Checks in Classic Template Block (#8902)
Browse files Browse the repository at this point in the history
* Remove isExperimentalBuild checks.

By removing the `isExperimentalBuild` conditional checks in the Classic
Template block, we can ensure the features added in #8324 will land in
WooCommerce Core and are not limited to the feature plugin.

See p1680000654295729-slack-C02UBB1EPEF for additional context.

* Revert isExperimentalBuild removal on registration

The conditional `isExperimentalBuild` conditional check that was
wrapping some conditional registration of the classic template
block seems to be  unrelated to the template conversion/migration.

This is something we can revisit and test separately but should not be
included in this changeset.
  • Loading branch information
danielwrobert authored and Tarun Vijwani committed Mar 30, 2023
1 parent e6855f7 commit 72a9404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/blocks/classic-template/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const Edit = ( {
getButtonLabel,
} = conversionConfig[ templateType ];

const canConvert = isExperimentalBuild() && isConversionPossible();
const canConvert = isConversionPossible();
const placeholderDescription = getDescription( templateTitle, canConvert );

return (
Expand Down

0 comments on commit 72a9404

Please sign in to comment.