Fix condition to allow rendering classic templates (https://github.com/woocommerce/woocommerce-blocks/pull/6643)

This commit is contained in:
Alba Rincón 2022-06-29 17:35:40 +02:00 committed by GitHub
parent e7eb8a6dd5
commit b5b454ad42
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}