WP-PostViews changelog

By Lester Chan, on WordPress.org since 2006. 100,000+ active installs.

Browse code

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.

  1. 2.0.1
    • 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
    Source Diff vs 2.0.0
  2. 2.0.0
    • 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.

    Source Diff vs 1.78.1
  3. 1.78.1

    No notes for this release in the current readme.

    Source Diff vs 1.78
  4. 1.78

    No notes for this release in the current readme.

    Source Diff vs 1.77
  5. 1.77

    No notes for this release in the current readme.

    Source Diff vs 1.76.1
  6. 1.76.1

    No notes for this release in the current readme.

    Source Diff vs 1.76
  7. 1.76

    No notes for this release in the current readme.

    Source Diff vs 1.75
  8. 1.75

    No notes for this release in the current readme.

    Source Diff vs 1.74
  9. 1.74

    No notes for this release in the current readme.

    Source Diff vs 1.73
  10. 1.73

    No notes for this release in the current readme.

    Source Diff vs 1.72
  11. 1.72

    No notes for this release in the current readme.

    Source Diff vs 1.71
  12. 1.71

    No notes for this release in the current readme.

    Source Diff vs 1.70
  13. 1.70

    No notes for this release in the current readme.

    Source Diff vs 1.69
  14. 1.69

    No notes for this release in the current readme.

    Source Diff vs 1.68
  15. 1.68

    No notes for this release in the current readme.

    Source Diff vs 1.67
  16. 1.67

    No notes for this release in the current readme.

    Source Diff vs 1.66
  17. 1.66

    No notes for this release in the current readme.

    Source Diff vs 1.50
  18. 1.50

    No notes for this release in the current readme.

    Source Diff vs 1.40
  19. 1.40

    No notes for this release in the current readme.

    Source Diff vs 1.31
  20. 1.31

    No notes for this release in the current readme.

    Source Diff vs 1.30
  21. 1.30

    No notes for this release in the current readme.

    Source Diff vs 1.20
  22. 1.20

    No notes for this release in the current readme.

    Source Diff vs 1.11
  23. 1.11

    No notes for this release in the current readme.

    Source Diff vs 1.10
  24. 1.10

    No notes for this release in the current readme.

    Source Diff vs 1.02
  25. 1.02

    No notes for this release in the current readme.

    Source Diff vs 1.01
  26. 1.01

    No notes for this release in the current readme.

    Source Diff vs 1.00
  27. 1.00

    No notes for this release in the current readme.

    Source Diff vs 1.00beta
  28. 1.00beta

    No notes for this release in the current readme.

    Source