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:
parent
d5b250aa81
commit
e016b169c3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue