Skip to content

Duplicating Query Block can result in duplicate Query IDs #55823

@peterwilsoncc

Description

@peterwilsoncc

Description

Duplicating the Query Block can result in duplicate query IDs resulting in unexpected enhanced pagination behaviour.

Step-by-step reproduction instructions

  1. Install WP Trunk ( WordPress/wordpress-develop@64bfb23 )
  2. Do not enabled Gutenberg
  3. Generate some posts via wp cli, wp post generate
  4. Go to the site editor
  5. Edit the home page
  6. Remove all group blocks except for the group containing Query block (this is to make it easier to see the effect while testing)
  7. Select the query block
  8. Ensure "Force page reload" is turned off
  9. Add a pagination block if required
  10. Select the group block above the query block (ie, the group containing the heading "Watch, Read, Listen")
  11. Duplicate the group
  12. In the duplicated group, modify the query so it doesn't inherit from the main query
  13. Save the template
  14. Visit the front end of the site
  15. Click next page on either query block
  16. Observe the page changes on both blocks

Screenshots, screen recording, code snippet

No response

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Query LoopAffects the Query Loop Block[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions