summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/comments.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/blocks/comments.php')
-rw-r--r--wp-includes/blocks/comments.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/wp-includes/blocks/comments.php b/wp-includes/blocks/comments.php
index 48aac15..f61490a 100644
--- a/wp-includes/blocks/comments.php
+++ b/wp-includes/blocks/comments.php
@@ -16,6 +16,10 @@
* the block is in legacy mode. If not, the HTML generated in the editor is
* returned instead.
*
+ * @since 6.1.0
+ *
+ * @global WP_Post $post Global post object.
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -83,6 +87,8 @@ function render_block_core_comments( $attributes, $content, $block ) {
/**
* Registers the `core/comments` block on the server.
+ *
+ * @since 6.1.0
*/
function register_block_core_comments() {
register_block_type_from_metadata(
@@ -98,6 +104,8 @@ add_action( 'init', 'register_block_core_comments' );
/**
* Use the button block classes for the form-submit button.
*
+ * @since 6.1.0
+ *
* @param array $fields The default comment form arguments.
*
* @return array Returns the modified fields.
@@ -116,6 +124,8 @@ add_filter( 'comment_form_defaults', 'comments_block_form_defaults' );
* Enqueues styles from the legacy `core/post-comments` block. These styles are
* required only by the block's fallback.
*
+ * @since 6.1.0
+ *
* @param string $block_name Name of the new block type.
*/
function enqueue_legacy_post_comments_block_styles( $block_name ) {
@@ -141,6 +151,8 @@ function enqueue_legacy_post_comments_block_styles( $block_name ) {
* The same approach was followed when core/query-loop was renamed to
* core/post-template.
*
+ * @since 6.1.0
+ *
* @see https://github.com/WordPress/gutenberg/pull/41807
* @see https://github.com/WordPress/gutenberg/pull/32514
*/