Skip to content

Commit

Permalink
Block Library: Deprecate the Post Comments block (#40167)
Browse files Browse the repository at this point in the history
* Remove Post Comments from the inserter

* Update block's title and description
  • Loading branch information
DAreRodz authored Apr 8, 2022
1 parent 2efde97 commit 93c3914
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions packages/block-library/src/post-comments/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -33,7 +33,8 @@
"background": true,
"text": true
}
}
},
"inserter": false
},
"style": [
"wp-block-post-comments",
Expand Down

0 comments on commit 93c3914

Please sign in to comment.