From 3dd2425ea9ecf4d620b6248b48eb273b0e80f41b Mon Sep 17 00:00:00 2001 From: naoki Date: Mon, 13 Jul 2020 13:50:15 +0900 Subject: [PATCH 1/4] Fix sample code of Block Preview in block registration docs --- .../developers/block-api/block-registration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/designers-developers/developers/block-api/block-registration.md b/docs/designers-developers/developers/block-api/block-registration.md index 3ee880dacd9fb..6b991b0f5c0c0 100644 --- a/docs/designers-developers/developers/block-api/block-registration.md +++ b/docs/designers-developers/developers/block-api/block-registration.md @@ -195,7 +195,7 @@ example: { attributes: { cover: 'https://example.com/image.jpg', }, - innerBlocks: { + innerBlocks: [ name: 'core/paragraph', attributes: { /* translators: example text. */ @@ -203,7 +203,7 @@ example: { 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.' ), }, - }, + ], }, ``` From f3c6e3136f8bd3781a626a7b6a7accf01d480258 Mon Sep 17 00:00:00 2001 From: naoki Date: Mon, 13 Jul 2020 13:56:19 +0900 Subject: [PATCH 2/4] fix some --- .../developers/block-api/block-registration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/designers-developers/developers/block-api/block-registration.md b/docs/designers-developers/developers/block-api/block-registration.md index 6b991b0f5c0c0..9422e9edd171c 100644 --- a/docs/designers-developers/developers/block-api/block-registration.md +++ b/docs/designers-developers/developers/block-api/block-registration.md @@ -203,7 +203,7 @@ example: { 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.' ), }, - ], + ], }, ``` From ee175fc358ce2d5f79c69744baa1fef849ecef7e Mon Sep 17 00:00:00 2001 From: Naoki Ohashi Date: Tue, 14 Jul 2020 17:44:12 +0900 Subject: [PATCH 3/4] Update docs/designers-developers/developers/block-api/block-registration.md inner blocks array should contain block object Co-authored-by: Ajit Bohra --- .../developers/block-api/block-registration.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/designers-developers/developers/block-api/block-registration.md b/docs/designers-developers/developers/block-api/block-registration.md index 9422e9edd171c..90132e76acc60 100644 --- a/docs/designers-developers/developers/block-api/block-registration.md +++ b/docs/designers-developers/developers/block-api/block-registration.md @@ -196,13 +196,15 @@ example: { cover: 'https://example.com/image.jpg', }, innerBlocks: [ + { name: 'core/paragraph', attributes: { /* translators: example text. */ content: __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.' ), - }, + } + }, ], }, ``` From f07f02eeb2d463317ec04a3fd6e6ead6fc0bce74 Mon Sep 17 00:00:00 2001 From: Naoki Ohashi Date: Sat, 18 Jul 2020 06:46:24 +0900 Subject: [PATCH 4/4] Add a trailing comma. --- .../developers/block-api/block-registration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/designers-developers/developers/block-api/block-registration.md b/docs/designers-developers/developers/block-api/block-registration.md index 90132e76acc60..4162468b508a9 100644 --- a/docs/designers-developers/developers/block-api/block-registration.md +++ b/docs/designers-developers/developers/block-api/block-registration.md @@ -203,7 +203,7 @@ example: { content: __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.' ), - } + }, }, ], },