Skip to content

Commit

Permalink
Revert "Block Library: Deprecate the Post Comments block (#40167)"
Browse files Browse the repository at this point in the history
This reverts commit 93c3914.
  • Loading branch information
ockham committed Apr 22, 2022
1 parent 3bed0c2 commit 2027143
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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 @@ -494,13 +494,13 @@ This block is deprecated. Please use the Comments Query Loop block instead. ([So
- **Supports:** ~~html~~, ~~inserter~~
- **Attributes:** commentId

## Post Comments (deprecated)
## 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))
Display a post's comments. ([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~~, ~~inserter~~
- **Supports:** align (full, wide), color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** textAlign

## Post Comments Count
Expand Down
7 changes: 3 additions & 4 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 (deprecated)",
"title": "Post Comments",
"category": "theme",
"description": "This block is deprecated. Please use the Comments Query Loop block instead.",
"description": "Display a post's comments.",
"textdomain": "default",
"attributes": {
"textAlign": {
Expand Down Expand Up @@ -33,8 +33,7 @@
"background": true,
"text": true
}
},
"inserter": false
}
},
"style": [
"wp-block-post-comments",
Expand Down

0 comments on commit 2027143

Please sign in to comment.