From b5b454ad42c029a94c6273101fb9abd4b7413a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Wed, 29 Jun 2022 17:35:40 +0200 Subject: [PATCH] Fix condition to allow rendering classic templates (https://github.com/woocommerce/woocommerce-blocks/pull/6643) --- plugins/woocommerce-blocks/src/BlockTypes/ClassicTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-blocks/src/BlockTypes/ClassicTemplate.php b/plugins/woocommerce-blocks/src/BlockTypes/ClassicTemplate.php index 262291f6647..be50064791f 100644 --- a/plugins/woocommerce-blocks/src/BlockTypes/ClassicTemplate.php +++ b/plugins/woocommerce-blocks/src/BlockTypes/ClassicTemplate.php @@ -46,7 +46,7 @@ class ClassicTemplate extends AbstractDynamicBlock { * @return string | void Rendered block type output. */ protected function render( $attributes, $content ) { - if ( isset( $attributes['template'] ) ) { + if ( ! isset( $attributes['template'] ) ) { return; }