v5.0.3 Latest
New
- The WB Poll block has a Show poll title switch, on by default, so a poll in a widget can show only the widget's own title.
- Polls Settings > Uninstall has a Delete data on uninstall switch, off by default; when on, deleting the plugin also deletes every poll, survey, vote, survey response and lead, the plugin's tables, activity poll data, members' vote records and all settings.
- wp bppolls clean removes only the demo polls, activity polls and surveys made by wp bppolls generate, and keeps members' real content.
Improve
- The Poll List block and [wbpoll_list] shortcode follow their Columns setting, then drop to two columns on tablets and one on phones.
- Pages without polls no longer load the poll composer files; the Poll Graph and Poll Report widgets load only their own files, and only where they are placed.
- Each answer row in the poll editor shows its number and title, and both update as you add, remove or reorder answers.
- Polls, surveys and widgets switch to dark only with the BuddyX or Reign dark mode, never from the device setting, and every surface, field and badge has a dark colour.
- Empty result bars are visible in light mode, and badge, Submit and survey button text stays readable on any accent colour.
- Confirm dialogs and media upload titles are now translatable.
- The bundled Font Awesome files are gone; polls use the plugin's own icons, so pages load less.
- Logged-out visitors on activity pages no longer download the poll composer files (date picker, option sorting, media uploader) they cannot use.
- The activity post box no longer sends a request to the server each time a poll option is typed or changed.
- The Email Settings tab says the survey confirmation email also needs the per-survey respondent notification switch.
- Polls Settings notes that existing polls keep their own voter roles, so guests must be allowed on each poll too.
Fix
- The poll form option to hide results now reads "Hide results until the poll ends" and appears only when the poll has an end date; polls that never end, or were saved without an end date, no longer hide results forever.
- Show Poll Description now shows the poll's description instead of the number 1, once on the poll page, and turning it off hides it on the poll page and on cards.
- The activity poll checkbox has a visible border in light and dark mode.
- Settings switches can be reached with Tab and flipped with Space again when another Wbcom plugin is active, and no longer show overlapping ON/OFF text.
- Pages with more than one [bp_polls] shortcode no longer repeat the page id "buddypress", which could also clash with BuddyPress pages.
- Poll authors now see the Export CSV button on the front-end Poll Graph widget, not only in wp-admin.
- Settings tabs fit the screen on tablets and phones.
- The wp bppolls list command works as documented, lists private and scheduled polls too, and the older wp bppolls list-polls and wp bppolls list_polls names still work.
- The Poll List block and [wbpoll_list] status filter shows full pages of matching polls with the right page count, and the block's Closed option lists only ended polls.
- Clicking the poll button in the activity post box no longer logs an error in the browser console.
- A member who already voted sees their vote, and cannot vote again, from another browser or device.
- New poll and survey links work right after activation on sites without BuddyPress, with no Permalinks re-save.
- A multiple-choice poll counts each option once per voter, even when the same answer is sent twice.
- Demo data records votes the same way real votes are recorded, so demo voters see their own vote and cannot vote twice, and demo polls open in the editor with the right settings.
- wp bppolls generate reports the demo poll types it made, re-running one demo type no longer breaks or duplicates the demo surveys, and deleting an activity poll also clears it from its voters' vote records.
- Poll and survey text, status labels, badges, buttons and empty result bars are readable in light and dark mode on BuddyX, BuddyX Pro, Reign and block themes, and the Vote button picks a readable label for any custom button colour.
- The poll author can export an activity poll's votes to CSV again, and the export no longer writes a temporary file to the uploads folder.
- With several activity polls on one page, clicking an option label always selects that poll's option, not a same-named option in another poll.
- The media uploader, confirm dialogs and messages opened from the activity post box show on top of the BuddyBoss post window instead of behind it, and Esc closes only the uploader, not the post window.
- Image, video and audio uploads from the activity post box follow the same Community media and poll creator settings that show those buttons, and no longer fail when standalone image, video or audio polls are off.
- Saving an image, video or audio link for an activity poll now needs a member who may create activity polls, with that media type turned on in the Activity Polls settings; visitors are asked to log in.
- Image, video and audio polls count as on only when switched on in Polls > Poll Types, the same as the settings page shows, so a setting saved without a value no longer turns them on.
- The voters list on activity polls opens from the keyboard with Enter or Space, is announced as a dialog, keeps focus inside, closes with Escape and returns focus to where you were.
- The voters list on activity polls loads 20 voters at a time with a Load more button, so an option with thousands of voters opens fast instead of sending every voter at once.
- Single polls with many votes load fast for members: each answer shows 3 voter avatars and the +N button loads the voter list 20 at a time, instead of every voter being built into the page.
- The +N voters list on single polls is for logged-in members, the same as on activity polls; visitors still see the vote counts and the first voter avatars.
- Activity polls show 3 voter avatars per option, the documented default, when the Display voters list count was never saved, instead of 5.
- The voters list on single polls has a visible close button, closes with Escape or a click outside, and keeps focus inside, using the same dialog as activity polls.
- The +N voters button on single polls shows a View All tooltip and has an accessible name.
- In dark mode the voters list header stays a dark bar with white text, and selected video and audio options keep their player visible and usable.
- The "not allowed to enter more than N options" notice in the activity poll composer closes with Escape as well as Got it, and returns focus to Add option.
- Typing past a character limit in the activity post box, the Poll Dashboard or the [wbpoll_create] form now shows a notice that the limit was reached.
- Media button tooltips in the activity post box no longer stay open after a click and overlap the next button's tooltip.
- A double click on Submit, Add option or Delete option in an activity poll sends one request, so members no longer see an "already voted" error after voting.
- The description editor and answer fields in the Create Poll form follow dark mode.
- On sites without BuddyPress, Polls Settings no longer points to an Activity Polls tab that is not there.
- The polls archive shows as many columns as fit (three on desktop, two or three on tablets, one on phones) instead of a single column below 1024px, and the activity poll checkboxes stay square on phones.
- Adding a write-in option to an activity poll no longer counts as a vote, so the member keeps the vote form and votes with Submit.
- Deleting your own write-in option removes it from the poll card straight away and never leaves you unable to vote.
- The WP-CLI help and the reset prompt now say that wp bppolls reset deletes every poll, survey, response and vote, not only demo data.
- Role names in the poll editor, Polls, Activity Polls and Surveys settings and the survey access list follow the site language, and the Registered and Anonymous groups are translatable.
- The Add image, Add video and Add audio buttons in the activity post box open the media uploader again instead of failing with a script error.
- The voters list and the "created a poll in the group" activity no longer log BuddyPress deprecation notices on BuddyPress 12 and newer.
- After an update, the voters list, notices and confirm dialogs load their new styles instead of an older copy cached by the browser.
- The +N voters button on activity and single polls is easier to tap on phones (a 41px target around the same small badge) and shows a focus ring when reached with the keyboard.
- The wbpoll/v1/voters REST endpoint answers 404 for an id that is not a poll you can see, instead of 403, and treats unpublished polls the same way so it never reveals them.
- Updating with demo polls installed no longer logs a "map_meta_cap was called incorrectly" notice.
- On BuddyPress, a poll posted in a group is shown as "created a poll in the group" instead of "posted an update in the group"; polls posted before this update keep their saved line.
- Uninstalling keeps polls, surveys, votes, survey responses, leads and settings unless Delete data on uninstall is on, and always clears cached data, leftover vote locks and the rate-limit and survey result caches.
- An ended poll's page now shows its results to members who did not vote and to guests, the same as the Poll Report widget and REST API.
- An open poll's page shows results to site admins and the poll's author before they vote, the same as the Poll Report widget and REST API.
- Voting, the voters list, poll media, widgets and survey steps no longer log a "wp_send_json was called incorrectly" notice on every request when WP_DEBUG is on.
- On right-to-left sites the voters list shows each member's handle as @name instead of name@.
- An activity or group poll posted right after typing its options is always saved as a poll, and a plain group update no longer shows "created a poll in the group".
- With Hide results until voted on, members who have not voted no longer see a poll's vote total on the poll page, poll cards, the Poll List block or the poll list API, the same as activity polls.
- The poll list API no longer returns a poll's rendered results when its settings hide them from the viewer (until voted, or until the poll ends), whatever include=results or include=all asks for.
- When a poll shows results without voting inputs, such as after you vote with changing votes off or once it has closed, the option or options you picked are marked with a check and "Your vote" on activity polls, poll pages, the Poll and Poll List blocks, and the Poll Report and Poll Graph widgets, for members and guests; a guest's own vote is marked while their browser keeps the poll cookie.
- A plugin zip missing its edd-license folder no longer stops the whole site with a fatal error; polls keep working and administrators see one notice that licence and updates are unavailable until the plugin is re-installed from the original zip.
- The Poll Graph widget, its settings form and the wp-admin Polls stats widget no longer load every poll's comments, so they cost the same queries for 10 or 50 polls.
- Polls created through the REST API now need a title and at least two different answers, and an update that leaves out the answers keeps the poll's answers.
- Page numbers and previous and next buttons on the Poll Dashboard, poll and survey archives, the Poll List block and the wp-admin vote logs and survey responses are at least 40px tall, so they are easier to tap.
- Text on accent-coloured buttons, the current page number, selected poll type icons, the Export CSV button and survey buttons switches between white and black to stay readable on light and dark theme accents, in light and dark mode.
- Poll answers made only of spaces are no longer saved, an answer of 0 is kept, and answers that differ only in capitals or spacing count as the same answer.
- Polls created or edited through the REST API save one answer type per answer, so an image poll with 2 answers no longer stores 3.
- A poll created through the REST API without a poll type is saved as a text poll, so members can add their own option when that is allowed.
- A survey whose saved question list or member type list is not valid JSON no longer stops the survey, its editor or the Surveys list with a fatal error on PHP 8.
- Adding a write-in option to a poll skips blank options and options the poll already has, and shows a message instead of saving nothing.
- Reinstalling after Delete data on uninstall no longer logs an "Undefined variable $dashboard_page_id" warning, keeps the existing Poll Dashboard page assigned, and seeds the same default settings as a fresh activation.
- A Poll Dashboard page number past the last page now shows the last page instead of an empty list with a range like "Showing 205-201 of 201", and the Activity Polls tab always links its last page.
- When the same activity poll appears twice on a page, each option label selects its own copy of the poll.
- Exporting an activity poll that has no votes yet downloads a CSV with just the header row instead of an error page.
- The "who can vote" list in the poll editor no longer shows blank group headers.
- wp bppolls generate --author=<id> sets the owner of the demo polls; the old --user option never reached the command.
- Editing an image, video, audio, HTML, star rating or yes/no poll in the Poll Dashboard after that type is switched off still shows and keeps its options.
- The Poll Dashboard create and edit panel and its confirm dialogs now open above sticky theme headers on phones.
- BuddyPress Search and BuddyBoss search show and count only the polls that match the search term, and leave out spam, hidden and private polls.
- A paused poll shows a Paused badge on the poll page, poll lists, the Poll Dashboard and the admin poll list instead of Active, and the Active and Scheduled list filters no longer include paused polls.
- Voter avatars on activity polls, the [bp_polls] shortcode, vote results and single poll results load every voter name in one batch, and an activity feed loads the voters of all its polls together, so a page costs the same few database queries for 3 voters or 50, on BuddyPress and BuddyBoss.
- After an uninstall with Delete data on uninstall and a reinstall, the activity items that held deleted polls show "This poll is no longer available." and are no longer counted or listed as activity polls on the Poll Dashboard, the Polls stats widget or the Poll Graph widget.
- The poll page checks whether you already voted once per poll instead of up to four times, and loads the first voters of every answer with the vote totals instead of one query per answer, so it costs the same queries for 3 or 10 answers and 12 or 50 voters.
- The poll button no longer shows an open, unstyled poll panel in a post box widget on pages that do not load the poll composer.
- On phones, the Cancel Poll button in the activity post box is a full-size tap target.
- Poll image, video and audio links must be full http or https addresses of at most 2048 characters; anything else is refused with a message in the post box, including when you press Preview and when you post.
- The Poll List block and [wbpoll_list] no longer offer a Category filter, which never matched any poll.
- The WB Poll block no longer shows Results chart, Grid layout and Show description controls that changed nothing; each poll's own settings decide them, and existing blocks keep working.
- Checkboxes in the poll create form are dark in BuddyX and Reign dark mode.
- Starting or cancelling a poll in the post box no longer throws a script error when BuddyPress Check-ins Pro 2.4.1 is active.
- Preview in the post box clears the old link, preview and attachment when a new link is refused, so a refused link never leaves the earlier one attached.
- The Poll Dashboard Create Poll panel uses the same "Allow multiple selections" checkbox as [wbpoll_create], and saving can switch it off again.
- The Advanced Settings heading sits inside its box on [wbpoll_create], the post box option panel has no hard white outline in dark mode, the video link field fits on phones, and the Poll label lines up with its icon on BuddyBoss.
- Pressing Preview with a refused link, or removing the media, no longer leaves an earlier link attached: the post uses only the link in the form, and a refused link clears the one kept on the server.
- The description editor toolbar, tabs and status bar follow dark mode in BuddyX Pro.
- A slow reply to Preview can no longer re-attach a link you removed or changed while it was still loading.
- Poll cookie no longer raises header warnings during WP-CLI and background requests.
- The description editor border follows dark mode in BuddyX Pro.
- The description editor frame follows dark mode in BuddyX Pro.
- The description editor's writing area follows light and dark mode as you switch, including typed text, links and the placeholder.
- Polls panels are styled on pages that use the Post From Anywhere block.
Security
- Poll option text and media links can no longer run script when an admin edits another member's poll in the Poll Dashboard.
- With Hide results until voted on, deleting a write-in option no longer reveals activity poll percentages or vote counts to a member who has not voted.
- The Poll Report widget no longer shows the title or results of a draft, pending or private poll to visitors who cannot open that poll.
- With Hide results until voted on, members who have not voted no longer see vote counts or voter names in the activity feed, voters list, Poll Graph widget or REST API. Site admins and the poll's author always see results, and everyone sees them once the poll has closed.
- The Poll Report widget and the poll REST endpoint follow each poll's result settings instead of showing results to everyone.
- The poll list API and the vote reply no longer show results to members who may not see them yet, and guests who voted see the same results everywhere.
- Adding a write-in option to an activity poll no longer reveals hidden results, and admins, the poll's author and closed polls show results the same way as standalone polls.
- Members can no longer upload poll media when image, video and audio answers are all turned off.
- In a public group, only group members can vote on, or add or remove options in, an activity poll; everyone else can still read it and sees a note to join the group.
- A survey that asks for an email uses only the email the visitor enters, so visitors on one shared office or mobile network no longer get another visitor's email on their response, and their answers are no longer emailed to that visitor.
- Activity Polls > who can create polls now decides who can post an activity or group poll, not only who sees the poll button; an update from anyone else is saved as a normal update.
Dev
- The main plugin file no longer carries a Tested up to header, which Plugin Check rejects; the readme's Tested up to is the one source.
- Requires WordPress 6.6 or newer, the version the poll block editor scripts need.
- The shared confirm and alert script is registered once, and a duplicate date picker script and an unused translation loader were removed.
- Removed unused code: WBPollHelper::getVoteCount(), invalidateVoteCountCache() and delete_tables(), Migrator::drop_all(), WBSurvey_Install::uninstall() and get_table_status(). The bpolls/v1/set-poll-type route now answers success without saving anything and will be removed in 5.0.4.
Compat
- Image, video and audio polls stay off for new polls until they are switched on in Polls > Poll Types, as on 5.0.2; polls already created keep their type.