fix: compatibility layer doesn't work when Products block is the top level block (https://github.com/woocommerce/woocommerce-blocks/pull/10455)

This commit is contained in:
Tung Du 2023-08-04 16:21:58 +07:00 committed by GitHub
parent d5b250aa81
commit e016b169c3
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class ArchiveProductTemplatesCompatibility extends AbstractTemplateCompatibility
return $parsed_block;
}
array_walk( $parsed_block['innerBlocks'], array( $this, 'inner_blocks_walker' ) );
$this->inner_blocks_walker( $parsed_block );
return $parsed_block;
}