WP-PostViews changelog
By Lester Chan, on WordPress.org since 2006. 100,000+ active installs.
28 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.
-
- NEW: A Settings link on the plugin’s row on the Plugins screen
- FIXED: “Count Views From” was only honoured while the page rendered. On a cached site the counting happens through a separate AJAX or REST call instead, and that path never asked the setting — so with “Registered Users Only” a guest hitting a cached page was still counted, and the bot exclusion never applied there either. Both endpoints now check the setting against the actual visitor’s login state
-
- FIXED: The two templates are echoed as markup on the strength of being wp_kses_post()‘d when saved — and that was true only of the settings screen. The 2.0.0 migration writes through a different door, and the row it folds in comes from a release that stored the field with no filtering at all, so a hostile template on a site upgrading from 1.78.1 was carried across verbatim and echoed to every visitor. The filtering now happens where the row is written, so WP-CLI, cron, a restored backup and another plugin all pass through it too
- FIXED: The deferred counting endpoint checked only that an ID named something, and every row in wp_posts answers to that — revisions, autosaves, auto-drafts, attachments, trashed posts, drafts, menu items, reusable blocks. An unauthenticated caller could walk the ID space writing a view row against each one, and read back the count of unpublished posts while doing it. It now requires a real, publicly viewable post, which is what the other counting path already knew
- FIXED: A view count that is not a number — the meta key is unprefixed, so anyone who can edit a post can type one into Custom Fields — turned every listing containing that post into a fatal error on PHP 8, because both count tokens are built whether or not the template uses them
- NEW: An editor block, Post Views, under Widgets. It renders on the server through the same code the shortcode uses, so a block and a shortcode showing the same post produce the same markup, and previewing it in the editor never counts a view. The [views] shortcode is unchanged and still supported — nothing needs converting, and posts already containing it keep working.
- NEW: A wp postviews WP-CLI command — list and get. It reads and never writes.
- NEW: A postviews/v1 REST API carrying one route, for counting a view from a cached page. Reading a count is already a views field on the core post resource. The admin-ajax.php wp_postviews action is unchanged and still supported.
And 26 more notes.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.