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

Commit ceb0911

Browse files
authored
Prevent showing the blockified templates util they are implemented (#6682)
1 parent 1bce6a1 commit ceb0911

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/BlockTemplatesController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,9 @@ public function get_block_templates_from_woocommerce( $slugs, $already_found_tem
299299

300300
foreach ( $template_files as $template_file ) {
301301
// Skip the template if it's blockified, and we should only use classic ones.
302-
if ( $this->package->is_experimental_build() &&
303-
! BlockTemplateUtils::should_use_blockified_product_grid_templates() &&
302+
// Until the blockified Product Grid Block is implemented, we need to always skip the blockified templates.
303+
if ( // $this->package->is_experimental_build() &&
304+
// ! BlockTemplateUtils::should_use_blockified_product_grid_templates() &&
304305
strpos( $template_file, 'blockified' ) !== false ) {
305306
continue;
306307
}

0 commit comments

Comments
 (0)