Query Loop Load More source code

By Automattic, on WordPress.org since 2024. 900+ active installs.

Browse code Download zip

This WordPress plugin adds a load more option to the Query Loop Pagination block in Gutenberg, allowing users to load more posts without refreshing the page. Below is its source code for every one of its 21 releases, what changed in the latest one, and how often it ships.

What changed in 1.0.21

Released Nov 30, 2026, 1 hour after 1.0.20
  • Security – Infinite scroll now stops when the page it loaded has no next page, so a hand-coded Load More button cannot keep requesting pages
  • Security – A Load More response that was redirected to another site is no longer used
  • Fix – A PHP warning and an empty arrow element when the Pagination block’s arrow is set to a value the plugin doesn’t know

8 files changed since 1.0.20: 8 modified, 0 added, 0 removed.

Compare 1.0.20 with 1.0.21

Release history

21 releases since August 2024
  1. 1.0.21 Nov 30, 2026 Security – Infinite scroll now stops when the page it loaded has no next page, so a hand-coded Load More button cannot keep requesting pages
  2. 1.0.20 Nov 30, 2026 Security – The Load More button now only requests the plugin’s own numbered pagination parameter and only accepts an HTML response, so a post author cannot point it at another endpoint and get markup from that response to run in a visitor’s browser.
  3. 1.0.19 Nov 13, 2026 Add – Optional text to show once every post has loaded
  4. 1.0.18 Jun 3, 2026 Fix – Updated composer.json PHP requirement from 8.3 to 8.0 to match plugin requirements
  5. 1.0.17 Jan 28, 2026 Fix – potential issue infinite scroll not triggering if button is at the bottom of the viewport
Full Query Loop Load More changelog with diffs

Source of 1.0.21

45 files
Browse all Query Loop Load More 1.0.21 files Browse trunk