Version Description
Download this release
Release Info
Developer | GamerZ |
Plugin | WP-Polls |
Version | 2.73.7 |
Comparing to | |
See all releases |
Code changes from version 2.73.6 to 2.73.7
- polls-templates.php +2 -2
- readme.txt +4 -2
- wp-polls.php +7 -3
polls-templates.php
CHANGED
@@ -30,8 +30,8 @@ if( isset($_POST['Submit']) && $_POST['Submit'] ) {
|
|
30 |
$poll_template_resultheader = wp_kses_post( trim($_POST['poll_template_resultheader'] ) );
|
31 |
$poll_template_resultbody = wp_kses_post( trim($_POST['poll_template_resultbody'] ) );
|
32 |
$poll_template_resultbody2 = wp_kses_post( trim($_POST['poll_template_resultbody2'] ) );
|
33 |
-
$poll_template_resultfooter =
|
34 |
-
$poll_template_resultfooter2 =
|
35 |
$poll_template_pollarchivelink = wp_kses_post( trim($_POST['poll_template_pollarchivelink'] ) );
|
36 |
$poll_template_pollarchiveheader = wp_kses_post( trim($_POST['poll_template_pollarchiveheader'] ) );
|
37 |
$poll_template_pollarchivefooter = wp_kses_post( trim($_POST['poll_template_pollarchivefooter'] ) );
|
30 |
$poll_template_resultheader = wp_kses_post( trim($_POST['poll_template_resultheader'] ) );
|
31 |
$poll_template_resultbody = wp_kses_post( trim($_POST['poll_template_resultbody'] ) );
|
32 |
$poll_template_resultbody2 = wp_kses_post( trim($_POST['poll_template_resultbody2'] ) );
|
33 |
+
$poll_template_resultfooter = wp_kses( trim($_POST['poll_template_resultfooter'] ), $allowed_tags );
|
34 |
+
$poll_template_resultfooter2 = wp_kses( trim($_POST['poll_template_resultfooter2'] ), $allowed_tags );
|
35 |
$poll_template_pollarchivelink = wp_kses_post( trim($_POST['poll_template_pollarchivelink'] ) );
|
36 |
$poll_template_pollarchiveheader = wp_kses_post( trim($_POST['poll_template_pollarchiveheader'] ) );
|
37 |
$poll_template_pollarchivefooter = wp_kses_post( trim($_POST['poll_template_pollarchivefooter'] ) );
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: GamerZ
|
|
3 |
Donate link: https://lesterchan.net/site/donation/
|
4 |
Tags: poll, polls, polling, vote, booth, democracy, ajax, survey, post, widget
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.73.
|
8 |
|
9 |
Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.
|
10 |
|
@@ -27,6 +27,8 @@ WP-Polls is extremely customizable via templates and css styles and there are to
|
|
27 |
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
|
28 |
|
29 |
## Changelog
|
|
|
|
|
30 |
### Version 2.73.6
|
31 |
* FIXED: Unable to vote for multiple answers
|
32 |
* FIXED: input HTML tags being removed when saving templates
|
3 |
Donate link: https://lesterchan.net/site/donation/
|
4 |
Tags: poll, polls, polling, vote, booth, democracy, ajax, survey, post, widget
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.8
|
7 |
+
Stable tag: 2.73.7
|
8 |
|
9 |
Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.
|
10 |
|
27 |
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
|
28 |
|
29 |
## Changelog
|
30 |
+
* FIXED: Unable to save input HTML tags for footer templates
|
31 |
+
|
32 |
### Version 2.73.6
|
33 |
* FIXED: Unable to vote for multiple answers
|
34 |
* FIXED: input HTML tags being removed when saving templates
|
wp-polls.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP-Polls
|
4 |
Plugin URI: https://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress's blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
|
6 |
-
Version: 2.73.
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: https://lesterchan.net
|
9 |
Text Domain: wp-polls
|
@@ -29,7 +29,7 @@ Text Domain: wp-polls
|
|
29 |
*/
|
30 |
|
31 |
### Version
|
32 |
-
define( 'WP_POLLS_VERSION', '2.73.
|
33 |
|
34 |
|
35 |
### Create Text Domain For Translations
|
@@ -538,7 +538,11 @@ function display_pollresult($poll_id, $user_voted = '', $display_loading = true)
|
|
538 |
if( empty( $user_voted ) ) {
|
539 |
$user_voted = array();
|
540 |
}
|
541 |
-
|
|
|
|
|
|
|
|
|
542 |
|
543 |
// Temp Poll Result
|
544 |
$temp_pollresult = '';
|
3 |
Plugin Name: WP-Polls
|
4 |
Plugin URI: https://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress's blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
|
6 |
+
Version: 2.73.7
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: https://lesterchan.net
|
9 |
Text Domain: wp-polls
|
29 |
*/
|
30 |
|
31 |
### Version
|
32 |
+
define( 'WP_POLLS_VERSION', '2.73.7' );
|
33 |
|
34 |
|
35 |
### Create Text Domain For Translations
|
538 |
if( empty( $user_voted ) ) {
|
539 |
$user_voted = array();
|
540 |
}
|
541 |
+
if ( is_array( $user_voted ) ) {
|
542 |
+
$user_voted = array_map( 'intval', $user_voted );
|
543 |
+
} else {
|
544 |
+
$user_voted = (int) $user_voted;
|
545 |
+
}
|
546 |
|
547 |
// Temp Poll Result
|
548 |
$temp_pollresult = '';
|