Prevent showing the blockified templates util they are implemented (https://github.com/woocommerce/woocommerce-blocks/pull/6682)

This commit is contained in:
Alba Rincón 2022-07-14 14:54:25 +02:00 committed by GitHub
parent 678fa6bff0
commit 5b50d37028
1 changed files with 3 additions and 2 deletions

View File

@ -299,8 +299,9 @@ class BlockTemplatesController {
foreach ( $template_files as $template_file ) {
// Skip the template if it's blockified, and we should only use classic ones.
if ( $this->package->is_experimental_build() &&
! BlockTemplateUtils::should_use_blockified_product_grid_templates() &&
// Until the blockified Product Grid Block is implemented, we need to always skip the blockified templates.
if ( // $this->package->is_experimental_build() &&
// ! BlockTemplateUtils::should_use_blockified_product_grid_templates() &&
strpos( $template_file, 'blockified' ) !== false ) {
continue;
}