Crowdsignal Dashboard – Polls, Surveys & more - Version 2.0.36

Version Description

  • The "top rated" widget class is defined by some hosts already so check if it exists before creating it again.
Download this release

Release Info

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

Code changes from version 2.0.35 to 2.0.36

Files changed (3) hide show
  1. polldaddy-org.php +8 -2
  2. polldaddy.php +1 -1
  3. readme.txt +11 -7
polldaddy-org.php CHANGED
@@ -950,7 +950,7 @@ add_filter( 'widget_text', 'do_shortcode' );
950
  * Polldaddy Top Rated Widget
951
  *
952
  * **/
953
- if ( class_exists( 'WP_Widget' ) ) {
954
  class PD_Top_Rated extends WP_Widget {
955
 
956
  function __construct() {
@@ -1089,7 +1089,13 @@ EOD;
1089
  <?php
1090
  }
1091
  }
1092
- add_action('widgets_init', create_function('', 'return register_widget("PD_Top_Rated");'));
 
 
 
 
 
 
1093
  }
1094
 
1095
  function polldaddy_login_warning() {
950
  * Polldaddy Top Rated Widget
951
  *
952
  * **/
953
+ if ( class_exists( 'WP_Widget' ) && ! class_exists( 'PD_Top_Rated' ) ) {
954
  class PD_Top_Rated extends WP_Widget {
955
 
956
  function __construct() {
1089
  <?php
1090
  }
1091
  }
1092
+ }
1093
+
1094
+ if ( class_exists( 'PD_Top_Rated' ) ) {
1095
+ function polldaddy_register_top_rated_widget() {
1096
+ return register_widget( 'PD_Top_Rated' );
1097
+ }
1098
+ add_action( 'widgets_init', 'polldaddy_register_top_rated_widget' );
1099
  }
1100
 
1101
  function polldaddy_login_warning() {
polldaddy.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Create and manage Polldaddy polls and ratings in WordPress
7
  * Author: Automattic, Inc.
8
  * Author URL: http://polldaddy.com/
9
- * Version: 2.0.35
10
  */
11
 
12
  // To hardcode your Polldaddy PartnerGUID (API Key), add the (uncommented) line below with the PartnerGUID to your `wp-config.php`
6
  * Description: Create and manage Polldaddy polls and ratings in WordPress
7
  * Author: Automattic, Inc.
8
  * Author URL: http://polldaddy.com/
9
+ * Version: 2.0.36
10
  */
11
 
12
  // To hardcode your Polldaddy PartnerGUID (API Key), add the (uncommented) line below with the PartnerGUID to your `wp-config.php`
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: eoigal, mdawaffe, donncha, johnny5, panosktn
3
  Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys, rate, rating, ratings
4
  Requires at least: 3.3
5
- Tested up to: 4.8
6
- Stable tag: 2.0.35
7
 
8
  Create and manage Polldaddy polls and ratings from within WordPress.
9
 
@@ -55,13 +55,14 @@ Polldaddy Polls is currently available in the following languages:
55
 
56
  Want to help translate the plugin or keep an existing translation up-to-date? Head on over to the [translation site](http://translate.wordpress.com/projects/polldaddy/plugin).
57
 
58
- Some strings are not translated when polls and surveys are embedded. You will have to translate them using a language pack on [http://polldaddy.com/](Polldaddy.com).
 
 
59
 
60
  == Installation ==
61
 
62
- Upload the plugin to your blog (or search for it and install it on your plugins page), activate it, then go to Settings->Polls to configure the plugin. You'll need a Polldaddy API key available from your [Polldaddy account
63
- page](http://polldaddy.com/account/#apikey) to sync your account and pull in your existing polls and ratings.
64
- Polldaddy.com is now linked to WordPress.com using [WordPress.com Connect](http://en.support.wordpress.com/wpcc-faq/) which means you can use your WordPress.com username and password to login to Polldaddy.com. If you have a WordPress.com account and have never used Polldaddy.com you can login [here](https://polldaddy.com/login/) to access Polldaddy.com.
65
 
66
  You can find further help on our [support page](http://support.polldaddy.com/). If you have any problems please use the [support forum](http://wordpress.org/support/plugin/polldaddy). The plugin also logs activity to a file using the [WP Debug Logger](http://wordpress.org/extend/plugins/wp-debug-logger/) plugin which can be useful in determining the cause of a problem.
67
 
@@ -116,10 +117,13 @@ Your theme is getting the post content, without necessarily showing it. If the p
116
 
117
 
118
  == Upgrade Notice ==
119
- Fixed a class constructor warning, and a rating comments PHP notice
120
 
121
  == Changelog ==
122
 
 
 
 
123
  = 2.0.35 =
124
  * Minor fix for remaining legacy class constructor with PHP 7.
125
  * Fixed some minor PHP notices when accessing nonexistent array values.
2
  Contributors: eoigal, mdawaffe, donncha, johnny5, panosktn
3
  Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys, rate, rating, ratings
4
  Requires at least: 3.3
5
+ Tested up to: 4.9.2
6
+ Stable tag: 2.0.36
7
 
8
  Create and manage Polldaddy polls and ratings from within WordPress.
9
 
55
 
56
  Want to help translate the plugin or keep an existing translation up-to-date? Head on over to the [translation site](http://translate.wordpress.com/projects/polldaddy/plugin).
57
 
58
+ Some strings are not translated when polls and surveys are embedded. You will have to translate them using a language pack on [Polldaddy.com](http://polldaddy.com/).
59
+
60
+ Development of the plugin will take place in [this Github repository](https://github.com/Automattic/polldaddy-plugin).
61
 
62
  == Installation ==
63
 
64
+ Upload the plugin to your blog (or search for it and install it on your plugins page), activate it, then go to Settings->Polls to configure the plugin. You'll need a Polldaddy API key available from your [Polldaddy account page](http://polldaddy.com/account/#apikey) to sync your account and pull in your existing polls and ratings.
65
+ Polldaddy.com is now linked to WordPress.com using [WordPress.com Connect](http://en.support.wordpress.com/wpcc-faq/) which means you can use your WordPress.com username and password to login to Polldaddy.com. If you have a WordPress.com account and have never used Polldaddy.com you can login [here](https://polldaddy.com/login/) to access Polldaddy.com.
 
66
 
67
  You can find further help on our [support page](http://support.polldaddy.com/). If you have any problems please use the [support forum](http://wordpress.org/support/plugin/polldaddy). The plugin also logs activity to a file using the [WP Debug Logger](http://wordpress.org/extend/plugins/wp-debug-logger/) plugin which can be useful in determining the cause of a problem.
68
 
117
 
118
 
119
  == Upgrade Notice ==
120
+ Check if top rated class is already defined to avoid fatal errors.
121
 
122
  == Changelog ==
123
 
124
+ = 2.0.36 =
125
+ * The "top rated" widget class is defined by some hosts already so check if it exists before creating it again.
126
+
127
  = 2.0.35 =
128
  * Minor fix for remaining legacy class constructor with PHP 7.
129
  * Fixed some minor PHP notices when accessing nonexistent array values.