diff --git a/bin/get-server-blocks.php b/bin/get-server-blocks.php index f573a40dfad06..6e64a5011a22e 100755 --- a/bin/get-server-blocks.php +++ b/bin/get-server-blocks.php @@ -19,6 +19,7 @@ define( 'WP_USE_THEMES', false ); require_once ABSPATH . WPINC . '/load.php'; require_once ABSPATH . WPINC . '/default-constants.php'; +require_once ABSPATH . WPINC . '/class-wp-walker.php'; wp_fix_server_vars(); wp_initial_constants(); require_once ABSPATH . WPINC . '/functions.php'; diff --git a/core-blocks/test/fixtures/core__latest-comments.json b/core-blocks/test/fixtures/core__latest-comments.json index 155ef9f06de07..a4558772762f2 100644 --- a/core-blocks/test/fixtures/core__latest-comments.json +++ b/core-blocks/test/fixtures/core__latest-comments.json @@ -3,7 +3,12 @@ "clientId": "_clientId_0", "name": "core/latest-comments", "isValid": true, - "attributes": {}, + "attributes": { + "commentsToShow": 5, + "displayAvatar": true, + "displayDate": true, + "displayExcerpt": true + }, "innerBlocks": [], "originalContent": "" } diff --git a/core-blocks/test/server-registered.json b/core-blocks/test/server-registered.json index 4adfc2b53bcd1..b75f0231026d7 100644 --- a/core-blocks/test/server-registered.json +++ b/core-blocks/test/server-registered.json @@ -1 +1 @@ -{"core\/block":{"attributes":{"ref":{"type":"number"}}},"core\/archives":{"attributes":{"showPostCounts":{"type":"boolean","default":false},"displayAsDropdown":{"type":"boolean","default":false},"align":{"type":"string","default":"none"}}},"core\/latest-posts":{"attributes":{"categories":{"type":"string"},"className":{"type":"string"},"postsToShow":{"type":"number","default":5},"displayPostDate":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"align":{"type":"string","default":"center"},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"}}}} \ No newline at end of file +{"core\/block":{"attributes":{"ref":{"type":"number"}}},"core\/latest-comments":{"attributes":{"className":{"type":"string"},"commentsToShow":{"type":"number","default":5,"minimum":1,"maximum":100},"displayAvatar":{"type":"boolean","default":true},"displayDate":{"type":"boolean","default":true},"displayExcerpt":{"type":"boolean","default":true},"align":{"type":"string","enum":["center","left","right","wide","full",""]}}},"core\/archives":{"attributes":{"showPostCounts":{"type":"boolean","default":false},"displayAsDropdown":{"type":"boolean","default":false},"align":{"type":"string","default":"none"}}},"core\/latest-posts":{"attributes":{"categories":{"type":"string"},"className":{"type":"string"},"postsToShow":{"type":"number","default":5},"displayPostDate":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"align":{"type":"string","default":"center"},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"}}}} \ No newline at end of file