Single Product Block: Add missing allowed inner blocks to fix nesting placement restrictions (#45530)

* Add missing allowed inner blocks to Single Product block

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Remove unnecessary attribute from Single Product block template

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Alexandre Lara 2024-03-25 10:59:57 -03:00 committed by GitHub
parent 39ecfece30
commit 207a5b43d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -78,5 +78,9 @@ export const DEFAULT_INNER_BLOCKS: InnerBlockTemplate[] = [
export const ALLOWED_INNER_BLOCKS = [
'core/columns',
'core/column',
'core/post-title',
'core/post-excerpt',
'woocommerce/add-to-cart-form',
'woocommerce/product-meta',
...Object.keys( getBlockMap( metadata.name ) ),
];

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix issue preventing some blocks from being direct children of the Single Product block.