WP-CommentNavi source code
By Lester Chan, on WordPress.org since 2008. 700+ active installs.
Replaces the plain ← Older Comments | Newer Comments → links with numbered page links. Example: Page 1 of 20: [1] 2 3 4 ... Below is its source code for every one of its 3 releases, what changed in the latest one, and how often it ships.
What changed in 2.0.0
Released Aug 9, 2026, 15 years after 1.10- BREAKING: Requires WordPress 6.8 and PHP 8.2, up from 6.0 and 7.4.
- BREAKING: The “View all comments” feature has been removed — the comment-all query variable and wp_commentnavi_all_comments_link(). It hooked pre_get_posts with no is_main_query() or is_singular() guard and forced comments_per_page to 9999, so any visitor could trigger an unbounded comment query on any URL. If your theme calls wp_commentnavi_all_comments_link() you must remove that call. See the FAQ
- BREAKING: The settings page moved to Settings -> CommentNavi at options-general.php?page=wp-commentnavi. The old address embedded the plugin’s directory name, which made the screen unreachable for anyone who had installed the plugin under a different one. Update your bookmarks
- BREAKING: The settings are stored in wp_commentnavi_options instead of commentnavi_options, and the plugin and schema versions in a wp_commentnavi_version row of their own. Your settings are carried across automatically the first time wp-admin is loaded after updating
- BREAKING: commentnavi-css.css is now css/wp-commentnavi.css, and a copy in your theme has to be renamed to wp-commentnavi.css to keep being used
- NEW: Restructured into includes/ following the Plugin Handbook layout. The plugin is now five classes behind the same template tags
19 files changed since 1.10: 2 modified, 12 added, 5 removed.
- readme.txt modified, +12,353 bytes
- wp-commentnavi.php modified, -6,748 bytes
- LICENSE added
- css/index.php added
- css/wp-commentnavi.css added
- includes/class-wp-commentnavi-call.php added
- includes/class-wp-commentnavi-core.php added
- includes/class-wp-commentnavi-options.php added
- includes/class-wp-commentnavi-settings.php added
- includes/class-wp-commentnavi.php added
And 9 more.
Compare 1.10 with 2.0.0Release history
3 releases since February 2009- 2.0.0 Aug 9, 2026 BREAKING: Requires WordPress 6.8 and PHP 8.2, up from 6.0 and 7.4.
- 1.10 Jan 4, 2011
- 1.00 Feb 7, 2009