From a306b237bacb9dd1035cdc719b22e7d1799ca6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Tue, 9 Nov 2021 11:29:37 +0100 Subject: [PATCH] Fix PHP fatal error on Product tag pages --- src/BlockTemplatesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BlockTemplatesController.php b/src/BlockTemplatesController.php index 08b53e8c1f4..f9a90e3c9fb 100644 --- a/src/BlockTemplatesController.php +++ b/src/BlockTemplatesController.php @@ -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 (