Enhanced Pagination throws notices if Query ID is not defined. #55719
Labels
[Block] Query Loop
Affects the Query Loop Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Enhanced pagination of the query block throws notices if the query ID is not defined.
In the Site Editor, it appears this is prevented from happening, so the issue only occurs if the incorrect markup is used in the files of a distributed theme.
I think if the queryId is not defined, then enhanced pagination can be prevented. Generating a queryId could work but may lead to collisions if there are two queries on the page and one of them has the value defined.
Step-by-step reproduction instructions
templates/index.html
Screenshots, screen recording, code snippet
Stack trace attached, it's quite a lot because it's generated with xdebug enabled.
debug.log
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: