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

Commit

Permalink
Fix PHP fatal error on Product tag pages (#5104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu authored Nov 9, 2021
1 parent 889378c commit 39a1e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlockTemplatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public function render_block_template() {
} elseif (
( is_product_taxonomy() && is_tax( 'product_tag' ) ) &&
! $this->theme_has_template( 'taxonomy-product_tag' ) &&
$this->default_block_template_is_available( 'taxonomy-product_tag' )
$this->block_template_is_available( 'taxonomy-product_tag' )
) {
add_filter( 'woocommerce_has_block_template', '__return_true', 10, 0 );
} elseif (
Expand Down

0 comments on commit 39a1e6d

Please sign in to comment.