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

Commit

Permalink
Prevent showing the blockified templates util they are implemented (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
albarin authored Jul 14, 2022
1 parent 1bce6a1 commit ceb0911
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/BlockTemplatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ceb0911

Please sign in to comment.