WP-PageNavi source code
By Lester Chan, on WordPress.org since 2006. 500,000+ active installs.
Want to replace the old ← Older posts | Newer posts → links with some page links? This plugin provides the wp_pagenavi() template tag which generates fancy pagination links. Below is its source code for every one of its 43 releases, what changed in the latest one, and how often it ships.
What changed in 3.0.1
Released Aug 28, 2026, 2 weeks after 3.0.0- CHANGED: The settings migration now runs early on every request instead of only when wp-admin is loaded, so a site whose dashboard is never opened still picks up its settings after an update
- FIXED: Network-activating the plugin upgraded only the site the click happened on. Every other site on the network kept serving its front end with the default settings — its real, pre-3.0.0 settings sat unread until somebody opened that site’s wp-admin, which also means nothing was lost and any site that looked wrong has already healed itself. Activation now walks every site on the network
7 files changed since 3.0.0: 7 modified, 0 added, 0 removed.
- includes/class-wp-pagenavi-core.php modified, +442 bytes
- includes/class-wp-pagenavi-options.php modified, +44 bytes
- includes/class-wp-pagenavi-settings.php modified, -230 bytes
- includes/class-wp-pagenavi.php modified, +1,458 bytes
- readme.txt modified, +589 bytes
- uninstall.php modified, -30 bytes
- wp-pagenavi.php modified, same size
Release history
43 releases since March 2007- 3.0.1 Aug 28, 2026 CHANGED: The settings migration now runs early on every request instead of only when wp-admin is loaded, so a site whose dashboard is never opened still picks up its settings after an update
- 3.0.0 Aug 10, 2026 BREAKING: WP-PageNavi now requires WordPress 6.8 and PHP 8.2. A site running anything older will not be offered the update
- 2.94.6 Jul 25, 2026
- 2.94.5 Dec 19, 2024
- 2.94.4 Dec 16, 2024