=== DD Poll – Polls, Surveys & Voting ===
Contributors: whitedd
Tags: poll, survey, voting, migration, wp-polls
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 2.0.11
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Professional poll management with real-time AJAX voting, REST API, and built-in migration from WP-Polls and legacy DD Polls.

== Description ==

DD Polls is a production-ready poll system designed for news portals and high-traffic websites.

**Features:**

* Custom database tables (no post types)
* AJAX voting without page reload
* Real-time results with caching
* Admin dashboard with statistics
* Shortcodes: `[dalmdrpo_poll]`, `[dalmdrpo_poll_results]`, `[dalmdrpo_poll_list]`
* WordPress widget support
* REST API at `/wp-json/dalmatian-dream-polls/v1/polls`
* CSV export and JSON import
* Anti-spam: rate limiting, IP throttling, nonce protection
* Multisite compatible
* Fully internationalized and ready for translate.wordpress.org
* Built-in migration tools for WP-Polls and legacy DD Poll installations, including polls, answers, vote totals, detailed vote history and shortcode conversion.
* Quick poll insertion in the post editor — choose from the five most recent polls and insert the selected poll directly into the post.

== Installation ==

1. Upload the `dalmatian-dream-polls` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu
3. Go to **Polls** in the admin menu to create your first poll
4. Embed using `[dalmdrpo_poll id="1"]` shortcode

== Frequently Asked Questions ==

= Does this use WordPress posts? =

No. DD Polls uses dedicated database tables for optimal performance.

= Can guests vote? =

Yes. Guest votes are tracked via cookie, IP hash, and user agent hash.

== Shortcodes ==

* `[dalmdrpo_poll id="123"]` — Display poll with voting form
* `[dalmdrpo_poll_results id="123"]` — Display results only
* `[dalmdrpo_poll_list]` — List all polls

== REST API ==

* `GET /wp-json/dalmatian-dream-polls/v1/polls`
* `GET /wp-json/dalmatian-dream-polls/v1/polls/{id}`
* `POST /wp-json/dalmatian-dream-polls/v1/polls/{id}/vote`

== Hooks ==

**Actions:** `dalmdrpo_poll_created`, `dalmdrpo_vote_added`, `dalmdrpo_poll_closed`

**Filters:** `dalmdrpo_poll_output`, `dalmdrpo_vote_allowed`, `dalmdrpo_verify_captcha`

== Screenshots ==

1. Built-in migration tools for WP-Polls and legacy DD Poll installations.
2. Create a new poll with multiple answers, scheduling and voting options.
3. Security, rate limiting, cache and privacy retention settings.
4. Built-in migration overview and DD Poll target statistics.
5. Poll management dashboard with a saved poll, status, vote totals and actions.
6. Responsive poll display on the website frontend.

== Changelog ==

= 2.0.11 =
* Internationalized the TinyMCE poll selector interface.
* Replaced hardcoded Croatian editor labels and messages with translatable strings.

= 2.0.10 =
* Added built-in poll migration tools.
* Added WP-Polls migration support.
* Added legacy DD Poll migration support.
* Added migration of polls, answers, vote totals and detailed vote history.
* Added automatic legacy shortcode conversion with ID mapping.
* Added migration backup and rollback protection.
* Added quick poll selector to the post editor with the five most recent polls.

= 2.0.9 =
* Poll management is available to all logged-in users who can edit posts (`edit_posts`); global Settings remain administrator-only (`manage_options`).
* Fixed upgrade capability migration so Polls admin pages remain visible after updating from legacy versions.
* Synchronized the internal plugin version constant with the release version.


= 2.0.8 =
* Renamed plugin display name to DD Poll.
* Added WordPress.org plugin icons and banners.



= 2.0.7 =
* Replaced short/generic WordPress-facing identifiers with the unique `dalmdrpo_` prefix required by the Plugin Directory review.
* Removed the generic legacy `[poll]` shortcode to prevent shortcode collisions.
* Standardized plugin constants, options, capabilities, AJAX actions, hooks, cache keys, REST namespace, script handles, and custom table names.

= 2.0.5 =
* Admin UI redesigned to match Dalmatian Dream product family.
* Added DD Polls branding/logo.
* Unified list/editor/results/settings components.
* No poll data or voting logic changed.

= 2.0.0 =
* Production release.
* Security and Plugin Check cleanup.


= 1.0.0 =
* Initial release
