Version Description
- Whitelist the polldaddy api key blog option so it can be updated by Jetpack.
- Fix label on the poll settings page
- Added a "How to I get my ratings back?" FAQ
- Show ratings in edit-comments.php in WordPress 4.4
Download this release
Release Info
Developer | donncha |
Plugin | Crowdsignal Dashboard – Polls, Surveys & more |
Version | 2.0.29 |
Comparing to | |
See all releases |
Code changes from version 2.0.28 to 2.0.29
- polldaddy.php +15 -2
- rating.php +2 -3
- readme.txt +14 -4
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.
|
10 |
*/
|
11 |
|
12 |
// You can hardcode your Polldaddy PartnerGUID (API Key) here
|
@@ -50,9 +50,22 @@ class WP_Polldaddy {
|
|
50 |
if ( $jetpack_active_modules && in_array( 'contact-form', $jetpack_active_modules ) )
|
51 |
$this->has_feedback_menu = true;
|
52 |
}
|
|
|
|
|
53 |
}
|
54 |
}
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
function &get_client( $api_key, $userCode = null ) {
|
57 |
if ( isset( $this->polldaddy_clients[$api_key] ) ) {
|
58 |
if ( !is_null( $userCode ) )
|
@@ -4950,7 +4963,7 @@ src="http://static.polldaddy.com/p/<?php echo (int) $poll_id; ?>.js"></scr
|
|
4950 |
<tbody>
|
4951 |
<tr class="form-field form-required">
|
4952 |
<th valign="top" scope="row">
|
4953 |
-
<label for="polldaddy-
|
4954 |
<?php _e( 'Polldaddy.com API Key', 'polldaddy' ); ?>
|
4955 |
</label>
|
4956 |
</th>
|
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.29
|
10 |
*/
|
11 |
|
12 |
// You can hardcode your Polldaddy PartnerGUID (API Key) here
|
50 |
if ( $jetpack_active_modules && in_array( 'contact-form', $jetpack_active_modules ) )
|
51 |
$this->has_feedback_menu = true;
|
52 |
}
|
53 |
+
Jetpack_Sync::sync_options( __FILE__, 'polldaddy_api_key' );
|
54 |
+
add_filter( 'jetpack_options_whitelist', array( $this, 'add_to_jetpack_options_whitelist' ) );
|
55 |
}
|
56 |
}
|
57 |
|
58 |
+
/**
|
59 |
+
* Add the polldaddy option to the Jetpack options management whitelist.
|
60 |
+
*
|
61 |
+
* @param array $options The list of whitelisted option names.
|
62 |
+
* @return array The updated whitelist
|
63 |
+
*/
|
64 |
+
public static function add_to_jetpack_options_whitelist( $options ) {
|
65 |
+
$options[] = 'polldaddy_api_key';
|
66 |
+
return $options;
|
67 |
+
}
|
68 |
+
|
69 |
function &get_client( $api_key, $userCode = null ) {
|
70 |
if ( isset( $this->polldaddy_clients[$api_key] ) ) {
|
71 |
if ( !is_null( $userCode ) )
|
4963 |
<tbody>
|
4964 |
<tr class="form-field form-required">
|
4965 |
<th valign="top" scope="row">
|
4966 |
+
<label for="polldaddy-key">
|
4967 |
<?php _e( 'Polldaddy.com API Key', 'polldaddy' ); ?>
|
4968 |
</label>
|
4969 |
</th>
|
rating.php
CHANGED
@@ -3,9 +3,8 @@
|
|
3 |
if ( function_exists( 'get_option' ) == false )
|
4 |
die( "Cheatin' eh?" );
|
5 |
|
6 |
-
function polldaddy_show_rating_comments( $content ) {
|
7 |
if ( !is_feed() && !defined( 'DOING_AJAX' ) ) {
|
8 |
-
global $comment;
|
9 |
global $post;
|
10 |
|
11 |
if ( isset( $comment->comment_ID ) && $comment->comment_ID > 0 ) {
|
@@ -152,5 +151,5 @@ if ( (int) get_option( 'pd-rating-pages' ) > 0 || (int) get_option( 'pd-rating-p
|
|
152 |
add_filter( 'the_excerpt', 'polldaddy_show_rating' );
|
153 |
}
|
154 |
|
155 |
-
add_filter( 'comment_text', 'polldaddy_show_rating_comments', 50 );
|
156 |
?>
|
3 |
if ( function_exists( 'get_option' ) == false )
|
4 |
die( "Cheatin' eh?" );
|
5 |
|
6 |
+
function polldaddy_show_rating_comments( $content, $comment, $args ) {
|
7 |
if ( !is_feed() && !defined( 'DOING_AJAX' ) ) {
|
|
|
8 |
global $post;
|
9 |
|
10 |
if ( isset( $comment->comment_ID ) && $comment->comment_ID > 0 ) {
|
151 |
add_filter( 'the_excerpt', 'polldaddy_show_rating' );
|
152 |
}
|
153 |
|
154 |
+
add_filter( 'comment_text', 'polldaddy_show_rating_comments', 50, 3 );
|
155 |
?>
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
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.
|
6 |
-
Stable tag: 2.0.
|
7 |
|
8 |
Create and manage Polldaddy polls and ratings from within WordPress.
|
9 |
|
@@ -98,6 +98,10 @@ Check that footer.php in your theme calls the wp_footer action. The rating javas
|
|
98 |
|
99 |
More info [here](http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks)
|
100 |
|
|
|
|
|
|
|
|
|
101 |
= I cannot access my ratings settings, I am getting a "Sorry! There was an error creating your rating widget. Please contact Polldaddy support to fix this." message. =
|
102 |
|
103 |
You need to select the synchronize ratings account in the WordPress options page at Settings->Polls & Ratings to make sure the ratings API key is valid.
|
@@ -112,12 +116,18 @@ Your theme is getting the post content, without necessarily showing it. If the p
|
|
112 |
|
113 |
|
114 |
== Upgrade Notice ==
|
115 |
-
|
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.
|
2 |
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.4.2
|
6 |
+
Stable tag: 2.0.29
|
7 |
|
8 |
Create and manage Polldaddy polls and ratings from within WordPress.
|
9 |
|
98 |
|
99 |
More info [here](http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks)
|
100 |
|
101 |
+
= My ratings are gone after I reinstalled the plugin. How do I get them back? =
|
102 |
+
|
103 |
+
Login to your Polldaddy.com account and [view the ratings](https://polldaddy.com/dashboard/?content=rating) in your dashboard. You should see ratings named "blog name - " comments/posts/pages. You need the rating ID of each of those which is visible when you edit them. It's the number in the URL of your browser that looks like https://polldaddy.com/ratings/1234567/edit/. After you connect the plugin to your Polldaddy account go to Settings->Ratings and make sure the ratings are displayed on your posts/pages/comments as desired. You'll see a link at the bottom of the page saying, "Advanced Settings" that will toggle new configuration settings. One of those settings is "rating ID" which you should replace with the number you got from your Polldaddy account. Now save the changes and the ratings on your site will be updated.
|
104 |
+
|
105 |
= I cannot access my ratings settings, I am getting a "Sorry! There was an error creating your rating widget. Please contact Polldaddy support to fix this." message. =
|
106 |
|
107 |
You need to select the synchronize ratings account in the WordPress options page at Settings->Polls & Ratings to make sure the ratings API key is valid.
|
116 |
|
117 |
|
118 |
== Upgrade Notice ==
|
119 |
+
Minor bug fixes.
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= 2.0.29 =
|
124 |
+
* Whitelist the polldaddy api key blog option so it can be updated by Jetpack.
|
125 |
+
* Fix label on the poll settings page
|
126 |
+
* Added a "How to I get my ratings back?" FAQ
|
127 |
+
* Show ratings in edit-comments.php in WordPress 4.4
|
128 |
+
|
129 |
= 2.0.28 =
|
130 |
+
* Don't show "Connect to Polldaddy" notice everywhere. Only on plugins and polls pages
|
131 |
|
132 |
= 2.0.27 =
|
133 |
* Fixed WP_Widget warning.
|