Undefined array key "paged" in comments-pagination-previous.php #65424
Labels
[Block] Comment Pagination Next
Affects the Comments Pagination Next Block
[Block] Comments Pagination Previous
Affects the Comments Pagination Previous Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
I encountered the following error while working on #64067 (the problem itself is unrelated to that PR).
This issue is likely related to the recent changes in this PR: #63698.
It appears that the
paged
property of the$comment_vars
can be undefined because it's not always included in the output ofbuild_comment_query_vars_from_block()
:https://github.com/WordPress/wordpress-develop/blob/4dafd584c91524f0cfd743f728d5f334df761e11/src/wp-includes/blocks.php#L2553-L2572
Step-by-step reproduction instructions
The issue appears on any post/page the contains the
comments pagination previous/next
block.The text was updated successfully, but these errors were encountered: