Enable the compatibility layer when Product Meta, Product Price and Breadcrumbs blocks are added (https://github.com/woocommerce/woocommerce-blocks/pull/8719)
This commit is contained in:
parent
bee8a74150
commit
23c38a1e23
|
@ -287,8 +287,7 @@ class SingleProductTemplateCompatibility extends AbstractTemplateCompatibility {
|
|||
$parsed_blocks = parse_blocks( $template_content );
|
||||
$grouped_blocks = self::group_blocks( $parsed_blocks );
|
||||
|
||||
// @todo Check this list before terminating the Blockfied Single Product Template project.
|
||||
$single_product_template_blocks = array( 'woocommerce/product-image-gallery', 'woocommerce/product-details', 'woocommerce/add-to-cart-form' );
|
||||
$single_product_template_blocks = array( 'woocommerce/product-image-gallery', 'woocommerce/product-details', 'woocommerce/add-to-cart-form', 'woocommerce/product-meta', 'woocommerce/product-price', 'woocommerce/breadcrumbs' );
|
||||
|
||||
$wrapped_blocks = array_map(
|
||||
function( $blocks ) use ( $single_product_template_blocks ) {
|
||||
|
|
Loading…
Reference in New Issue