Crowdsignal Dashboard – Polls, Surveys & more - Version 1.7.1

Version Description

  • Bug Fix: Answer text in results now displaying the correct text
Download this release

Release Info

Developer eoigal
Plugin Icon 128x128 Crowdsignal Dashboard – Polls, Surveys & more
Version 1.7.1
Comparing to
See all releases

Code changes from version 1.7 to 1.7.1

Files changed (2) hide show
  1. polldaddy.php +6 -6
  2. readme.txt +5 -2
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
 
@@ -1579,13 +1579,13 @@ class WP_PollDaddy {
1579
  <?php
1580
  $class = '';
1581
  foreach ( $results->answers as $answer ) :
1582
- $answer->___content = trim( strip_tags( $answer->___content ) );
1583
- if( strlen( $answer->___content ) == 0 ){
1584
- $answer->___content = '-- empty HTML tag --';
1585
  }
1586
 
1587
  $class = $class ? '' : ' class="alternate"';
1588
- $content = $results->others && 'Other answer...' === $answer->___content ? sprintf( __( 'Other (<a href="%s">see below</a>)' ), '#other-answers-results' ) : wp_specialchars( $answer->___content );
1589
 
1590
  ?>
1591
 
5
  Description: Create and manage PollDaddy polls in WordPress
6
  Author: Automattic, Inc.
7
  Author URL: http://automattic.com/
8
+ Version: 1.7.1
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.1';
28
 
29
  var $polldaddy_clients = array();
30
 
1579
  <?php
1580
  $class = '';
1581
  foreach ( $results->answers as $answer ) :
1582
+ $answer->text = trim( strip_tags( $answer->text ) );
1583
+ if( strlen( $answer->text ) == 0 ){
1584
+ $answer->text = '-- empty HTML tag --';
1585
  }
1586
 
1587
  $class = $class ? '' : ' class="alternate"';
1588
+ $content = $results->others && 'Other answer...' === $answer->text ? sprintf( __( 'Other (<a href="%s">see below</a>)' ), '#other-answers-results' ) : wp_specialchars( $answer->text );
1589
 
1590
  ?>
1591
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: mdawaffe, eoigal
3
  Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys
4
  Requires at least: 2.6
5
- Tested up to: 2.7.1
6
- Stable tag: 1.7
7
 
8
  Create and manage PollDaddy polls from within WordPress.
9
 
@@ -32,6 +32,9 @@ 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 =
36
  * Added Poll Style Editor
37
  * Updated the PollDaddy API Client code
2
  Contributors: mdawaffe, eoigal
3
  Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys
4
  Requires at least: 2.6
5
+ Tested up to: 2.8.4
6
+ Stable tag: 1.7.1
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.1 =
36
+ * Bug Fix: Answer text in results now displaying the correct text
37
+
38
  = 1.7 =
39
  * Added Poll Style Editor
40
  * Updated the PollDaddy API Client code