From 93c391435d1cd40f8652d03631ca2c0933595308 Mon Sep 17 00:00:00 2001 From: David Arenas Date: Fri, 8 Apr 2022 21:28:58 +0200 Subject: [PATCH] Block Library: Deprecate the Post Comments block (#40167) * Remove Post Comments from the inserter * Update block's title and description --- docs/reference-guides/core-blocks.md | 6 +++--- packages/block-library/src/post-comments/block.json | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index f739b8b89d712..3275de39f752d 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -485,13 +485,13 @@ This block is deprecated. Please use the Comments Query Loop block instead. ([So - **Supports:** ~~html~~, ~~inserter~~ - **Attributes:** commentId -## Post Comments +## Post Comments (deprecated) -Display a post's comments. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/post-comments)) +This block is deprecated. Please use the Comments Query Loop block instead. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/post-comments)) - **Name:** core/post-comments - **Category:** theme -- **Supports:** align (full, wide), color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align (full, wide), color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~, ~~inserter~~ - **Attributes:** textAlign ## Post Comments Count diff --git a/packages/block-library/src/post-comments/block.json b/packages/block-library/src/post-comments/block.json index a4353589df093..c3b569f598154 100644 --- a/packages/block-library/src/post-comments/block.json +++ b/packages/block-library/src/post-comments/block.json @@ -2,9 +2,9 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 2, "name": "core/post-comments", - "title": "Post Comments", + "title": "Post Comments (deprecated)", "category": "theme", - "description": "Display a post's comments.", + "description": "This block is deprecated. Please use the Comments Query Loop block instead.", "textdomain": "default", "attributes": { "textAlign": { @@ -33,7 +33,8 @@ "background": true, "text": true } - } + }, + "inserter": false }, "style": [ "wp-block-post-comments",