diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
commit | 0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch) | |
tree | e139a90049b158d4eed892d1662ee7f5c358fa31 /wp-includes/blocks/comments.php | |
parent | Adding upstream version 6.5.5+dfsg1. (diff) | |
download | wordpress-upstream/6.6.1+dfsg1.tar.xz wordpress-upstream/6.6.1+dfsg1.zip |
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/blocks/comments.php')
-rw-r--r-- | wp-includes/blocks/comments.php | 12 |
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 */ |