WP-Polls changelog

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

Browse code

54 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. 3.0.3
    • FIXED: A page that refreshes its polls from theme or plugin code could show the same poll twice. Since 3.0.0 the “Loading …” placeholder beside each poll carried the wp-polls class as well as wp-polls-loading, so code that walks .wp-polls to find the polls on a page found every one twice, and the id it read off the placeholder, polls-369-loading, was taken as poll 369 again. The placeholder carries wp-polls-loading alone, as it did before 3.0.0.
    • NOTE: Custom CSS that addresses the spinner as .wp-polls .wp-polls-spinner no longer matches; .wp-polls-loading .wp-polls-spinner does.
    Source Diff vs 3.0.2
  2. 3.0.2
    • NEW: A wp_polls_needs_assets filter, for code that renders a poll where WP-Polls cannot see it coming. 3.0.1 loads the stylesheet and the voting script only where it finds the poll widget, a [poll] or [page_polls] shortcode, one of the two blocks, or a poll rendering during the page itself. Poll markup fetched over admin-ajax.php or the REST API into a page that shows no poll of its own is none of those, and got neither file — leaving the poll unable to vote, under a “Loading …” that never cleared. Returning true from the filter is how such a page asks for them.
    Source Diff vs 3.0.1
  3. 3.0.1
    • CHANGED: The stylesheet, the voting script and the inline poll bar styles load only on pages that show a poll, a polls archive or the poll widget; every other page sheds all three. If a caching or optimisation plugin combines assets per page, its combined file now differs between pages with and without a poll — that is this change, not a fault, and its cache can simply be regenerated.
    • NEW: A Settings link on the plugin’s row on the Plugins screen.
    • CHANGED: Upgrade routines run on init rather than admin_init, so a site updated in the background — by automatic updates or WP-CLI — is migrated on its next request of any kind instead of waiting for somebody to open wp-admin.
    • CHANGED: Only one request at a time runs the outstanding upgrade. Running it on init means running it on front-end requests, so two visitors arriving together could both start the option migration and do the same work twice over; now the second waits for the first and finds nothing left to do.
    Source Diff vs 3.0.0
  4. 3.0.0
    • FIXED: The limit on how many answers a vote may select was enforced in the browser and nowhere else, so one crafted request could vote for every answer of a single-choice poll — each answer gaining a vote and the poll’s total gaining several, while the voter count went up by one. That leaves the percentages, %POLL_MOST_ANSWER% and %POLL_LEAST_ANSWER% permanently wrong. The maximum is checked on the server now, on both the AJAX and REST paths
    • NEW: A wp polls WP-CLI command — list, get, open, close and delete.
    • NEW: A polls/v1 REST API for reading a poll, reading its result and voting. The admin-ajax.php polls action is unchanged and still supported.
    • NEW: Two editor blocks, Poll and Polls Archive, both under Widgets. They render on the server through the same code the shortcodes use, so a block and a shortcode showing the same poll produce the same markup. The [poll], [poll=2] and [page_polls] shortcodes are unchanged and still supported — nothing needs converting, and posts already containing them keep working.
    • BREAKING: Requires WordPress 6.8 and PHP 8.2.
    • BREAKING: The scripts no longer define any global JavaScript functions. poll_vote(), poll_result(), poll_booth() and the admin equivalents are now private, so custom templates or themes that called them directly must move to data-poll-id / data-poll-action attributes. WP-Polls converts the stock templates for you on upgrade and warns in wp-admin about any it could not convert.

    And 66 more notes.

    Source Diff vs 2.77.3
  5. 2.77.3

    No notes for this release in the current readme.

    Source Diff vs 2.77.2
  6. 2.77.2

    No notes for this release in the current readme.

    Source Diff vs 2.77.1
  7. 2.77.1

    No notes for this release in the current readme.

    Source Diff vs 2.77.0
  8. 2.77.0

    No notes for this release in the current readme.

    Source Diff vs 2.76.0
  9. 2.76.0

    No notes for this release in the current readme.

    Source Diff vs 2.75.6
  10. 2.75.6

    No notes for this release in the current readme.

    Source Diff vs 2.75.5
  11. 2.75.5

    No notes for this release in the current readme.

    Source Diff vs 2.75.4
  12. 2.75.4

    No notes for this release in the current readme.

    Source Diff vs 2.75.3
  13. 2.75.3

    No notes for this release in the current readme.

    Source Diff vs 2.75.2
  14. 2.75.2

    No notes for this release in the current readme.

    Source Diff vs 2.75.1
  15. 2.75.1

    No notes for this release in the current readme.

    Source Diff vs 2.74.1
  16. 2.74.1

    No notes for this release in the current readme.

    Source Diff vs 2.74
  17. 2.74

    No notes for this release in the current readme.

    Source Diff vs 2.73.8
  18. 2.73.8

    No notes for this release in the current readme.

    Source Diff vs 2.73.7
  19. 2.73.7

    No notes for this release in the current readme.

    Source Diff vs 2.73.6
  20. 2.73.6

    No notes for this release in the current readme.

    Source Diff vs 2.73.5
  21. 2.73.5

    No notes for this release in the current readme.

    Source Diff vs 2.73.4
  22. 2.73.4

    No notes for this release in the current readme.

    Source Diff vs 2.73.3
  23. 2.73.3

    No notes for this release in the current readme.

    Source Diff vs 2.73.2
  24. 2.73.2

    No notes for this release in the current readme.

    Source Diff vs 2.73.1
  25. 2.73.1

    No notes for this release in the current readme.

    Source Diff vs 2.73
  26. 2.73

    No notes for this release in the current readme.

    Source Diff vs 2.72
  27. 2.72

    No notes for this release in the current readme.

    Source Diff vs 2.71
  28. 2.71

    No notes for this release in the current readme.

    Source Diff vs 2.70
  29. 2.70

    No notes for this release in the current readme.

    Source Diff vs 2.69
  30. 2.69

    No notes for this release in the current readme.

    Source Diff vs 2.68
  31. 2.68

    No notes for this release in the current readme.

    Source Diff vs 2.67
  32. 2.67

    No notes for this release in the current readme.

    Source Diff vs 2.66
  33. 2.66

    No notes for this release in the current readme.

    Source Diff vs 2.65
  34. 2.65

    No notes for this release in the current readme.

    Source Diff vs 2.64
  35. 2.64

    No notes for this release in the current readme.

    Source Diff vs 2.50
  36. 2.50

    No notes for this release in the current readme.

    Source Diff vs 2.40
  37. 2.40

    No notes for this release in the current readme.

    Source Diff vs 2.31
  38. 2.31

    No notes for this release in the current readme.

    Source Diff vs 2.30
  39. 2.30

    No notes for this release in the current readme.

    Source Diff vs 2.21
  40. 2.21

    No notes for this release in the current readme.

    Source Diff vs 2.20
  41. 2.20

    No notes for this release in the current readme.

    Source Diff vs 2.14
  42. 2.14

    No notes for this release in the current readme.

    Source Diff vs 2.13
  43. 2.13

    No notes for this release in the current readme.

    Source Diff vs 2.12
  44. 2.12

    No notes for this release in the current readme.

    Source Diff vs 2.11
  45. 2.11

    No notes for this release in the current readme.

    Source Diff vs 2.10
  46. 2.10

    No notes for this release in the current readme.

    Source Diff vs 2.06
  47. 2.06

    No notes for this release in the current readme.

    Source Diff vs 2.06b
  48. 2.06b

    No notes for this release in the current readme.

    Source Diff vs 2.06a
  49. 2.06a

    No notes for this release in the current readme.

    Source Diff vs 2.05
  50. 2.05

    No notes for this release in the current readme.

    Source Diff vs 2.04
  51. 2.04

    No notes for this release in the current readme.

    Source Diff vs 2.03
  52. 2.03

    No notes for this release in the current readme.

    Source Diff vs 2.02a
  53. 2.02a

    No notes for this release in the current readme.

    Source Diff vs 1.00
  54. 1.00

    No notes for this release in the current readme.

    Source