From 74b47119224551f3722939bb975294f165dfd505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Thu, 14 Jul 2022 14:26:18 +0200 Subject: [PATCH] Prevent showing the blockified templates util they are implemented --- src/BlockTemplatesController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/BlockTemplatesController.php b/src/BlockTemplatesController.php index 38845a9ff77..38a10c96b49 100644 --- a/src/BlockTemplatesController.php +++ b/src/BlockTemplatesController.php @@ -299,8 +299,9 @@ public function get_block_templates_from_woocommerce( $slugs, $already_found_tem 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; }