diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/blocks/comments-pagination-next.php --- a/wp/wp-includes/blocks/comments-pagination-next.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/blocks/comments-pagination-next.php Fri Sep 05 18:40:08 2025 +0200 @@ -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. @@ -26,7 +28,7 @@ $label = isset( $attributes['label'] ) && ! empty( $attributes['label'] ) ? $attributes['label'] : $default_label; $pagination_arrow = get_comments_pagination_arrow( $block, 'next' ); - $filter_link_attributes = function() { + $filter_link_attributes = static function () { return get_block_wrapper_attributes(); }; add_filter( 'next_comments_link_attributes', $filter_link_attributes ); @@ -48,6 +50,8 @@ /** * 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(