From 5b50d370283c1d1cc649e94a711ade6dec3b9c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Thu, 14 Jul 2022 14:54:25 +0200 Subject: [PATCH] Prevent showing the blockified templates util they are implemented (https://github.com/woocommerce/woocommerce-blocks/pull/6682) --- plugins/woocommerce-blocks/src/BlockTemplatesController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce-blocks/src/BlockTemplatesController.php b/plugins/woocommerce-blocks/src/BlockTemplatesController.php index 38845a9ff77..38a10c96b49 100644 --- a/plugins/woocommerce-blocks/src/BlockTemplatesController.php +++ b/plugins/woocommerce-blocks/src/BlockTemplatesController.php @@ -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; }