Skip to content

Commit

Permalink
Fix PHP fatal error on Product tag pages (woocommerce#5104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu authored and jonny-bull committed Dec 16, 2021
1 parent 65790b2 commit 33f7d50
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 33f7d50

Please sign in to comment.