开发者 | Tkama |
---|---|
更新时间 | 2025年7月6日 18:33 |
WordPress版本: | 6.8.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[democracy]
shortcode (visual editor button available)Yes. When you deactivate and delete the plugin, it removes all its options and data.
after_setup_theme
hook.Democracy_Poll
renamed to Plugin
and moved under namespace.democr()
and demopt()
renamed to \DemocracyPoll\plugin()
and \DemocracyPoll\options()
.DemocracyPoll
namespace.democracy_shortcode
bug.Regenerate_democracy_css
fixes. Empty answer PHP notice fix.democracy-poll.pot
.orderby
argument for get_dem_polls()
function.get_dem_polls_sql_clauses
.disabled
property not removed correctly on uncheck for multi-answer questions.target="_blank"
attribute for copyright link.[democracy_archives]
shortcode now accepts parameters like 'before_title', 'after_title', 'active', 'open', 'screen', 'per_page', 'add_from_posts'.get_dem_polls( $args )
function.dem_get_ip
filter and Cloudflare IP support.get_democracy_poll_results( $poll_id )
wrapper function to get poll results.<img>
tag in questions and answers.get_post_poll_id()
on is_singular()
pages.$original_data
parameter.wp_remote_get()
with file_get_contents()
for geoplugin.net API.jquery-ui.css
and images fix.$this
for PHP 5.3 in Democracy_Poll_Admin
class.wp_get_sites()
with get_sites()
(WP 4.6+).jquery-ui.css
to plugin files.Dem
to Democracy_Poll
.activate_plugin()
outside wp-admin. Thanks to J.D. Grimes.Democracy_Poll_Admin::update_options()
method.esc_sql()
usage. Thanks to J.D. Grimes.Democracy_Poll_Admin
trigger error fix.update_options()
to Democracy_Poll
.REMOTE_ADDR
(to avoid cheating).noindex
.dem_voted
and dem_vote_deleted
.dem_vote_screen
and dem_result_screen
.dem_poll_screen_choose
.document.ready
instead of load
.dem_vote_screen_answer
, dem_result_screen_answer
, demadmin_after_question
, demadmin_after_answer
, dem_sanitize_answer_data
, demadmin_sanitize_poll_data
.wp_json_encode()
for WP < 4.1 support.dem_super_access
, dem_get_poll
, dem_set_answers
.dem_poll_inserted
, dem_before_insert_quest_data
.dem_act
, dem_pid
, show_addanswerfield
GET parameters).int(11)
to bigint(20)
to fix wrong IP storage. Adjusted some other DB fields.utf8mb4
to utf8
. Thanks to Nanotraktor..label
class conflict; renamed to .dem-label
.democracy_log
table.utf8mb4
to support emojis.block.css
theme.notVote
cookie lifespan set to 1 hour.block.css
.$_POST
variables.wp-load.php
calls on AJAX requests; now uses WordPress environment.$wpdb
functions.[democracy]
.