--- a/wp/wp-includes/blocks/comments-pagination-previous.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/blocks/comments-pagination-previous.php Fri Sep 05 18:52:52 2025 +0200
@@ -29,7 +29,8 @@
};
add_filter( 'previous_comments_link_attributes', $filter_link_attributes );
- $previous_comments_link = get_previous_comments_link( $label );
+ $comment_vars = build_comment_query_vars_from_block( $block );
+ $previous_comments_link = get_previous_comments_link( $label, $comment_vars['paged'] ?? null );
remove_filter( 'previous_comments_link_attributes', $filter_link_attributes );