make sure we only allow one cart/checkout block per page/post (https://github.com/woocommerce/woocommerce-blocks/pull/1384)

This commit is contained in:
Darren Ethier 2019-12-16 08:27:17 -05:00 committed by GitHub
parent a4be92ec15
commit 25c32dff45
2 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,7 @@ registerBlockType( 'woocommerce/cart', {
supports: {
align: [ 'wide', 'full' ],
html: false,
multiple: false,
},
example,
attributes: {},

View File

@ -25,7 +25,11 @@ registerBlockType( 'woocommerce/checkout', {
'Display the checkout experience for customers.',
'woo-gutenberg-products-block'
),
supports: {},
supports: {
align: [ 'wide', 'full' ],
html: false,
multiple: false,
},
example,
attributes: {
/**