Version Description
- Bug Fix: Added fix for php warning when custom styles array empty
- Bug Fix: Added fix for cookie&ip option not getting set due to API change
Download this release
Release Info
Developer | mdawaffe |
Plugin | Crowdsignal Dashboard – Polls, Surveys & more |
Version | 1.7.5 |
Comparing to | |
See all releases |
Code changes from version 1.7.4 to 1.7.5
- polldaddy.php +22 -23
- readme.txt +7 -3
polldaddy.php
CHANGED
@@ -5,7 +5,7 @@ Plugin Name: PollDaddy Polls
|
|
5 |
Description: Create and manage PollDaddy polls in WordPress
|
6 |
Author: Automattic, Inc.
|
7 |
Author URL: http://automattic.com/
|
8 |
-
Version: 1.7.
|
9 |
*/
|
10 |
|
11 |
// You can hardcode your PollDaddy PartnerGUID (API Key) here
|
@@ -24,7 +24,7 @@ class WP_PollDaddy {
|
|
24 |
var $base_url = false;
|
25 |
var $use_ssl = 0;
|
26 |
var $scheme = 'https';
|
27 |
-
var $version = '1.7.
|
28 |
|
29 |
var $polldaddy_clients = array();
|
30 |
|
@@ -546,7 +546,7 @@ class WP_PollDaddy {
|
|
546 |
$poll_data[$option] = 'no';
|
547 |
}
|
548 |
|
549 |
-
$blocks = array( 'off', 'cookie', '
|
550 |
if ( isset( $_POST['blockRepeatVotersType'] ) && in_array( $_POST['blockRepeatVotersType'], $blocks ) )
|
551 |
$poll_data['blockRepeatVotersType'] = $_POST['blockRepeatVotersType'];
|
552 |
|
@@ -1198,7 +1198,7 @@ class WP_PollDaddy {
|
|
1198 |
<ul class="poll-options">
|
1199 |
|
1200 |
<?php
|
1201 |
-
foreach ( array( 'off' => __( "Don't block repeat voters" ), 'cookie' => __( 'Block by cookie (recommended)' ), '
|
1202 |
if ( $is_POST )
|
1203 |
$checked = $value === $_POST['blockRepeatVotersType'] ? ' checked="checked"' : '';
|
1204 |
else
|
@@ -1326,23 +1326,6 @@ class WP_PollDaddy {
|
|
1326 |
$iframe_view = false;
|
1327 |
if ( isset($_GET['iframe']) )
|
1328 |
$iframe_view = true;
|
1329 |
-
|
1330 |
-
$polldaddy->reset();
|
1331 |
-
$styles = $polldaddy->get_styles();
|
1332 |
-
|
1333 |
-
$show_custom = false;
|
1334 |
-
if( isset( $styles ) && count( $styles ) > 0 ){
|
1335 |
-
$show_custom = true;
|
1336 |
-
}
|
1337 |
-
|
1338 |
-
if ( $style_ID > 18 ){
|
1339 |
-
$standard_style_ID = 0;
|
1340 |
-
$custom_style_ID = $style_ID;
|
1341 |
-
}
|
1342 |
-
else{
|
1343 |
-
$standard_style_ID = $style_ID;
|
1344 |
-
$custom_style_ID = 0;
|
1345 |
-
}
|
1346 |
|
1347 |
$options = array(
|
1348 |
101 => 'Aluminum Narrow',
|
@@ -1404,8 +1387,24 @@ class WP_PollDaddy {
|
|
1404 |
156 => 'Music Wide'
|
1405 |
);
|
1406 |
|
1407 |
-
|
1408 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1409 |
}
|
1410 |
?>
|
1411 |
|
5 |
Description: Create and manage PollDaddy polls in WordPress
|
6 |
Author: Automattic, Inc.
|
7 |
Author URL: http://automattic.com/
|
8 |
+
Version: 1.7.5
|
9 |
*/
|
10 |
|
11 |
// You can hardcode your PollDaddy PartnerGUID (API Key) here
|
24 |
var $base_url = false;
|
25 |
var $use_ssl = 0;
|
26 |
var $scheme = 'https';
|
27 |
+
var $version = '1.7.5';
|
28 |
|
29 |
var $polldaddy_clients = array();
|
30 |
|
546 |
$poll_data[$option] = 'no';
|
547 |
}
|
548 |
|
549 |
+
$blocks = array( 'off', 'cookie', 'cookieip' );
|
550 |
if ( isset( $_POST['blockRepeatVotersType'] ) && in_array( $_POST['blockRepeatVotersType'], $blocks ) )
|
551 |
$poll_data['blockRepeatVotersType'] = $_POST['blockRepeatVotersType'];
|
552 |
|
1198 |
<ul class="poll-options">
|
1199 |
|
1200 |
<?php
|
1201 |
+
foreach ( array( 'off' => __( "Don't block repeat voters" ), 'cookie' => __( 'Block by cookie (recommended)' ), 'cookieip' => __( 'Block by cookie and by IP address' ) ) as $value => $label ) :
|
1202 |
if ( $is_POST )
|
1203 |
$checked = $value === $_POST['blockRepeatVotersType'] ? ' checked="checked"' : '';
|
1204 |
else
|
1326 |
$iframe_view = false;
|
1327 |
if ( isset($_GET['iframe']) )
|
1328 |
$iframe_view = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1329 |
|
1330 |
$options = array(
|
1331 |
101 => 'Aluminum Narrow',
|
1387 |
156 => 'Music Wide'
|
1388 |
);
|
1389 |
|
1390 |
+
$polldaddy->reset();
|
1391 |
+
$styles = $polldaddy->get_styles();
|
1392 |
+
|
1393 |
+
$show_custom = false;
|
1394 |
+
if( isset( $styles ) && count( $styles ) > 0 ){
|
1395 |
+
foreach( (array) $styles->style as $style ){
|
1396 |
+
$options[ (int) $style->_id ] = $style->title;
|
1397 |
+
}
|
1398 |
+
$show_custom = true;
|
1399 |
+
}
|
1400 |
+
|
1401 |
+
if ( $style_ID > 18 ){
|
1402 |
+
$standard_style_ID = 0;
|
1403 |
+
$custom_style_ID = $style_ID;
|
1404 |
+
}
|
1405 |
+
else{
|
1406 |
+
$standard_style_ID = $style_ID;
|
1407 |
+
$custom_style_ID = 0;
|
1408 |
}
|
1409 |
?>
|
1410 |
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: mdawaffe, eoigal, automattic
|
3 |
Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys
|
4 |
Requires at least: 2.6
|
5 |
-
Tested up to: 2.
|
6 |
-
Stable tag: 1.7.
|
7 |
|
8 |
Create and manage PollDaddy polls from within WordPress.
|
9 |
|
@@ -32,10 +32,14 @@ Yes. You'll be able to edit the polls they create from your blog. (You won't be
|
|
32 |
Nope. The permissions are the same as for posts. So Editors and Administrators can edit anyone's polls for that blog. Authors can only edit their own.
|
33 |
|
34 |
== Change Log ==
|
|
|
|
|
|
|
|
|
35 |
= 1.7.4 =
|
36 |
* Bug Fix: Added fix for missing styles array (used when javascript is disabled)
|
37 |
* Bug Fix: Added fix for Internet Explorer 8 and jQuery fadeIn, fadeOut methods
|
38 |
-
* Bug Fix: Fixed php warnings
|
39 |
|
40 |
= 1.7.3 =
|
41 |
* Added poll option to allow you to set limit on number of answers for multiple choice polls.
|
2 |
Contributors: mdawaffe, eoigal, automattic
|
3 |
Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys
|
4 |
Requires at least: 2.6
|
5 |
+
Tested up to: 2.9
|
6 |
+
Stable tag: 1.7.5
|
7 |
|
8 |
Create and manage PollDaddy polls from within WordPress.
|
9 |
|
32 |
Nope. The permissions are the same as for posts. So Editors and Administrators can edit anyone's polls for that blog. Authors can only edit their own.
|
33 |
|
34 |
== Change Log ==
|
35 |
+
= 1.7.5 =
|
36 |
+
* Bug Fix: Added fix for php warning when custom styles array empty
|
37 |
+
* Bug Fix: Added fix for cookie&ip option not getting set due to API change
|
38 |
+
|
39 |
= 1.7.4 =
|
40 |
* Bug Fix: Added fix for missing styles array (used when javascript is disabled)
|
41 |
* Bug Fix: Added fix for Internet Explorer 8 and jQuery fadeIn, fadeOut methods
|
42 |
+
* Bug Fix: Fixed some php warnings
|
43 |
|
44 |
= 1.7.3 =
|
45 |
* Added poll option to allow you to set limit on number of answers for multiple choice polls.
|