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 | |
parent | Adding upstream version 6.5.5+dfsg1. (diff) | |
download | wordpress-upstream.tar.xz wordpress-upstream.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 '')
-rw-r--r-- | wp-includes/blocks/comments-pagination-next.php | 4 | ||||
-rw-r--r-- | wp-includes/blocks/comments-pagination-numbers.php | 4 | ||||
-rw-r--r-- | wp-includes/blocks/comments-pagination-previous.php | 4 | ||||
-rw-r--r-- | wp-includes/blocks/comments-pagination.php | 4 | ||||
-rw-r--r-- | wp-includes/blocks/comments-title.php | 4 | ||||
-rw-r--r-- | wp-includes/blocks/comments.php | 12 |
6 files changed, 32 insertions, 0 deletions
diff --git a/wp-includes/blocks/comments-pagination-next.php b/wp-includes/blocks/comments-pagination-next.php index 51d1f75..cb8350e 100644 --- a/wp-includes/blocks/comments-pagination-next.php +++ b/wp-includes/blocks/comments-pagination-next.php @@ -8,6 +8,8 @@ /** * Renders the `core/comments-pagination-next` block on the server. * + * @since 6.0.0 + * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. @@ -48,6 +50,8 @@ function render_block_core_comments_pagination_next( $attributes, $content, $blo /** * Registers the `core/comments-pagination-next` block on the server. + * + * @since 6.0.0 */ function register_block_core_comments_pagination_next() { register_block_type_from_metadata( diff --git a/wp-includes/blocks/comments-pagination-numbers.php b/wp-includes/blocks/comments-pagination-numbers.php index b172e0c..093a645 100644 --- a/wp-includes/blocks/comments-pagination-numbers.php +++ b/wp-includes/blocks/comments-pagination-numbers.php @@ -8,6 +8,8 @@ /** * Renders the `core/comments-pagination-numbers` block on the server. * + * @since 6.0.0 + * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. @@ -50,6 +52,8 @@ function render_block_core_comments_pagination_numbers( $attributes, $content, $ /** * Registers the `core/comments-pagination-numbers` block on the server. + * + * @since 6.0.0 */ function register_block_core_comments_pagination_numbers() { register_block_type_from_metadata( diff --git a/wp-includes/blocks/comments-pagination-previous.php b/wp-includes/blocks/comments-pagination-previous.php index f194e8a..092a28d 100644 --- a/wp-includes/blocks/comments-pagination-previous.php +++ b/wp-includes/blocks/comments-pagination-previous.php @@ -8,6 +8,8 @@ /** * Renders the `core/comments-pagination-previous` block on the server. * + * @since 6.0.0 + * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. @@ -40,6 +42,8 @@ function render_block_core_comments_pagination_previous( $attributes, $content, /** * Registers the `core/comments-pagination-previous` block on the server. + * + * @since 6.0.0 */ function register_block_core_comments_pagination_previous() { register_block_type_from_metadata( diff --git a/wp-includes/blocks/comments-pagination.php b/wp-includes/blocks/comments-pagination.php index 2f9cef2..1543fc0 100644 --- a/wp-includes/blocks/comments-pagination.php +++ b/wp-includes/blocks/comments-pagination.php @@ -8,6 +8,8 @@ /** * Renders the `core/comments-pagination` block on the server. * + * @since 6.0.0 + * * @param array $attributes Block attributes. * @param string $content Block default content. * @@ -34,6 +36,8 @@ function render_block_core_comments_pagination( $attributes, $content ) { /** * Registers the `core/comments-pagination` block on the server. + * + * @since 6.0.0 */ function register_block_core_comments_pagination() { register_block_type_from_metadata( diff --git a/wp-includes/blocks/comments-title.php b/wp-includes/blocks/comments-title.php index 62119fc..130132e 100644 --- a/wp-includes/blocks/comments-title.php +++ b/wp-includes/blocks/comments-title.php @@ -8,6 +8,8 @@ /** * Renders the `core/comments-title` block on the server. * + * @since 6.0.0 + * * @param array $attributes Block attributes. * * @return string Return the post comments title. @@ -84,6 +86,8 @@ function render_block_core_comments_title( $attributes ) { /** * Registers the `core/comments-title` block on the server. + * + * @since 6.0.0 */ function register_block_core_comments_title() { register_block_type_from_metadata( 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 */ |