Crowdsignal Dashboard – Polls, Surveys & more - Version 2.0.28

Version Description

Don't show "Connect to Polldaddy" notice everywhere. Only on plugins and polls pages

Download this release

Release Info

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

Code changes from version 2.0.27 to 2.0.28

Files changed (3) hide show
  1. polldaddy-org.php +2 -2
  2. polldaddy.php +1 -1
  3. readme.txt +5 -2
polldaddy-org.php CHANGED
@@ -1080,9 +1080,9 @@ EOD;
1080
  }
1081
 
1082
  function polldaddy_login_warning() {
1083
- global $cache_enabled;
1084
  $page = isset( $_GET[ 'page' ] ) ? $_GET[ 'page' ] : '';
1085
- if ( false == get_option( 'polldaddy_api_key' ) && function_exists( "admin_url" ) )
1086
  echo '<div class="updated"><p><strong>' . sprintf( __( 'Warning! The Polldaddy plugin must be linked to your Polldaddy.com account. Please visit the <a href="%s">plugin settings page</a> to login.', 'polldaddy' ), admin_url( 'options-general.php?page=polls&action=options' ) ) . '</strong></p></div>';
1087
  }
1088
  add_action( 'admin_notices', 'polldaddy_login_warning' );
1080
  }
1081
 
1082
  function polldaddy_login_warning() {
1083
+ global $cache_enabled, $hook_suffix;
1084
  $page = isset( $_GET[ 'page' ] ) ? $_GET[ 'page' ] : '';
1085
+ if ( ( $hook_suffix == 'plugins.php' || $page == 'polls' ) && false == get_option( 'polldaddy_api_key' ) && function_exists( "admin_url" ) )
1086
  echo '<div class="updated"><p><strong>' . sprintf( __( 'Warning! The Polldaddy plugin must be linked to your Polldaddy.com account. Please visit the <a href="%s">plugin settings page</a> to login.', 'polldaddy' ), admin_url( 'options-general.php?page=polls&action=options' ) ) . '</strong></p></div>';
1087
  }
1088
  add_action( 'admin_notices', 'polldaddy_login_warning' );
polldaddy.php CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://wordpress.org/extend/plugins/polldaddy/
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.27
10
  */
11
 
12
  // You can hardcode your Polldaddy PartnerGUID (API Key) here
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.28
10
  */
11
 
12
  // You can hardcode your Polldaddy PartnerGUID (API Key) here
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: eoigal, alternatekev, mdawaffe, donncha, johnny5
3
  Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys, rate, rating, ratings
4
  Requires at least: 3.3
5
  Tested up to: 4.3
6
- Stable tag: 2.0.27
7
 
8
  Create and manage Polldaddy polls and ratings from within WordPress.
9
 
@@ -112,10 +112,13 @@ Your theme is getting the post content, without necessarily showing it. If the p
112
 
113
 
114
  == Upgrade Notice ==
115
- Fixed WP_Widget warning and fixed prev/next links on poll feedback page.
116
 
117
  == Changelog ==
118
 
 
 
 
119
  = 2.0.27 =
120
  * Fixed WP_Widget warning.
121
  * Fixed "previous" and "next" links on the poll feedback page.
3
  Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys, rate, rating, ratings
4
  Requires at least: 3.3
5
  Tested up to: 4.3
6
+ Stable tag: 2.0.28
7
 
8
  Create and manage Polldaddy polls and ratings from within WordPress.
9
 
112
 
113
 
114
  == Upgrade Notice ==
115
+ Don't show "Connect to Polldaddy" notice everywhere. Only on plugins and polls pages
116
 
117
  == Changelog ==
118
 
119
+ = 2.0.28 =
120
+ Don't show "Connect to Polldaddy" notice everywhere. Only on plugins and polls pages
121
+
122
  = 2.0.27 =
123
  * Fixed WP_Widget warning.
124
  * Fixed "previous" and "next" links on the poll feedback page.