Version Description
Bug and security fixes
Download this release
Release Info
| Developer | cgastrell |
| Plugin | |
| Version | 3.0.9 |
| Comparing to | |
| See all releases | |
Code changes from version 3.0.8 to 3.0.9
- partials/html-admin-setup-header.php +38 -38
- partials/html-admin-setup-step-1.php +2 -2
- polldaddy-org.php +1 -1
- polldaddy-xml.php +3 -3
- polldaddy.php +1 -1
- readme.txt +7 -3
partials/html-admin-setup-header.php
CHANGED
|
@@ -13,41 +13,41 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 13 |
<div id="cs-plugin-container">
|
| 14 |
<div class='cs-lower'>
|
| 15 |
<h1 id='crowdsignal__logo'><?php esc_html_e( 'Crowdsignal Settings', 'crowdsignal-forms' ); ?></h1>
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 13 |
<div id="cs-plugin-container">
|
| 14 |
<div class='cs-lower'>
|
| 15 |
<h1 id='crowdsignal__logo'><?php esc_html_e( 'Crowdsignal Settings', 'crowdsignal-forms' ); ?></h1>
|
| 16 |
+
<?php
|
| 17 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
| 18 |
+
if ( isset( $_GET['msg'] ) ) {
|
| 19 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
| 20 |
+
switch ( $_GET['msg'] ) {
|
| 21 |
+
case 'disconnect-fail':
|
| 22 |
+
echo '<div class="error fade crowdsignal-message"><p>' .
|
| 23 |
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Content is svg from internal lib
|
| 24 |
+
esc_html__( 'Could not disconnect. Please try again.', 'crowdsignal-forms' ) .
|
| 25 |
+
'</p></div>';
|
| 26 |
+
break;
|
| 27 |
+
case 'disconnected':
|
| 28 |
+
echo '<div class="updated fade crowdsignal-message"><p>' .
|
| 29 |
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Content is svg from internal lib
|
| 30 |
+
esc_html__( 'Successfully disconnected from Crowdsignal.', 'crowdsignal-forms' ) .
|
| 31 |
+
'</p></div>';
|
| 32 |
+
break;
|
| 33 |
+
case 'connected':
|
| 34 |
+
echo '<div class="updated crowdsignal-message"><p>' .
|
| 35 |
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Content is svg from internal lib
|
| 36 |
+
esc_html__( 'Success! Your Crowdsignal account is successfully connected! You are ready!', 'crowdsignal-forms' ) .
|
| 37 |
+
'</p></div>';
|
| 38 |
+
break;
|
| 39 |
+
case 'api-key-added':
|
| 40 |
+
echo '<div class="updated crowdsignal-message"><p>' .
|
| 41 |
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Content is svg from internal lib
|
| 42 |
+
esc_html__( 'You have been connected to Crowdsignal.', 'crowdsignal-forms' ) .
|
| 43 |
+
'</p></div>';
|
| 44 |
+
break;
|
| 45 |
+
case 'api-key-not-added':
|
| 46 |
+
echo '<div class="error fade crowdsignal-message"><p>' .
|
| 47 |
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Content is svg from internal lib
|
| 48 |
+
esc_html__( 'Your API key has not been updated, please try again.', 'crowdsignal-forms' ) .
|
| 49 |
+
'</p></div>';
|
| 50 |
+
break;
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
?>
|
partials/html-admin-setup-step-1.php
CHANGED
|
@@ -74,11 +74,11 @@ const showConnect = ( title ) => {
|
|
| 74 |
`
|
| 75 |
location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,
|
| 76 |
width=${ parseInt( popupWidth, 10 ) },
|
| 77 |
-
height=${ parseInt( popupHeight, 10 )
|
| 78 |
top=${ parseInt( top, 10 ) },
|
| 79 |
left=${ parseInt( left, 10 ) }
|
| 80 |
`
|
| 81 |
-
)
|
| 82 |
|
| 83 |
if ( window.focus ) CSCONNECT.focus();
|
| 84 |
}
|
| 74 |
`
|
| 75 |
location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,
|
| 76 |
width=${ parseInt( popupWidth, 10 ) },
|
| 77 |
+
height=${ parseInt( popupHeight, 10 ) },
|
| 78 |
top=${ parseInt( top, 10 ) },
|
| 79 |
left=${ parseInt( left, 10 ) }
|
| 80 |
`
|
| 81 |
+
);
|
| 82 |
|
| 83 |
if ( window.focus ) CSCONNECT.focus();
|
| 84 |
}
|
polldaddy-org.php
CHANGED
|
@@ -652,7 +652,7 @@ function polldaddy_login_warning() {
|
|
| 652 |
return;
|
| 653 |
}
|
| 654 |
|
| 655 |
-
echo '<div class="updated"><p><strong>' . sprintf( __( '
|
| 656 |
}
|
| 657 |
add_action( 'admin_notices', 'polldaddy_login_warning' );
|
| 658 |
|
| 652 |
return;
|
| 653 |
}
|
| 654 |
|
| 655 |
+
echo '<div class="updated"><p><strong>' . sprintf( __( 'Crowdsignal features will be unavailable until you link your Crowdsignal.com account. Please visit the <a href="%s">plugin settings page</a> to login.', 'polldaddy' ), admin_url( 'options-general.php?page=crowdsignal-settings' ) ) . '</strong></p></div>';
|
| 656 |
}
|
| 657 |
add_action( 'admin_notices', 'polldaddy_login_warning' );
|
| 658 |
|
polldaddy-xml.php
CHANGED
|
@@ -751,7 +751,7 @@ class Polldaddy_XML_Parser {
|
|
| 751 |
return $this->objects;
|
| 752 |
}
|
| 753 |
|
| 754 |
-
function tag_open(
|
| 755 |
$object_pos = $this->object_pos;
|
| 756 |
if ( $this->object_stack ) {
|
| 757 |
if ( isset( $this->object_stack[$object_pos]['args'][$tag] ) ) {
|
|
@@ -782,7 +782,7 @@ class Polldaddy_XML_Parser {
|
|
| 782 |
}
|
| 783 |
}
|
| 784 |
|
| 785 |
-
function text(
|
| 786 |
if ( !$this->object_stack )
|
| 787 |
return;
|
| 788 |
|
|
@@ -809,7 +809,7 @@ class Polldaddy_XML_Parser {
|
|
| 809 |
}
|
| 810 |
}
|
| 811 |
|
| 812 |
-
function tag_close(
|
| 813 |
if ( isset( $this->polldaddy_objects[$tag] ) ) {
|
| 814 |
if ( $tag !== $this->object_stack[$this->object_pos]['tag'] )
|
| 815 |
die( 'damn' );
|
| 751 |
return $this->objects;
|
| 752 |
}
|
| 753 |
|
| 754 |
+
function tag_open( $parser, $tag, $attributes ) {
|
| 755 |
$object_pos = $this->object_pos;
|
| 756 |
if ( $this->object_stack ) {
|
| 757 |
if ( isset( $this->object_stack[$object_pos]['args'][$tag] ) ) {
|
| 782 |
}
|
| 783 |
}
|
| 784 |
|
| 785 |
+
function text( $parser, $text ) {
|
| 786 |
if ( !$this->object_stack )
|
| 787 |
return;
|
| 788 |
|
| 809 |
}
|
| 810 |
}
|
| 811 |
|
| 812 |
+
function tag_close( $parser, $tag ) {
|
| 813 |
if ( isset( $this->polldaddy_objects[$tag] ) ) {
|
| 814 |
if ( $tag !== $this->object_stack[$this->object_pos]['tag'] )
|
| 815 |
die( 'damn' );
|
polldaddy.php
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
* Description: Create and manage Crowdsignal polls and ratings in WordPress
|
| 6 |
* Author: Automattic, Inc.
|
| 7 |
* Author URL: https://crowdsignal.com/
|
| 8 |
-
* Version: 3.0.
|
| 9 |
*/
|
| 10 |
|
| 11 |
// To hardcode your Polldaddy PartnerGUID (API Key), add the (uncommented) line below with the PartnerGUID to your `wp-config.php`
|
| 5 |
* Description: Create and manage Crowdsignal polls and ratings in WordPress
|
| 6 |
* Author: Automattic, Inc.
|
| 7 |
* Author URL: https://crowdsignal.com/
|
| 8 |
+
* Version: 3.0.9
|
| 9 |
*/
|
| 10 |
|
| 11 |
// To hardcode your Polldaddy PartnerGUID (API Key), add the (uncommented) line below with the PartnerGUID to your `wp-config.php`
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: donncha, ice9js, cgastrell, digitalwaveride, jcheringer, thestevek
|
|
| 3 |
Tags: crowdsignal, polls, poll, polldaddy, wppolls, vote, polling, surveys, rate, rating, ratings
|
| 4 |
Requires at least: 5.5
|
| 5 |
Requires PHP: 5.6
|
| 6 |
-
Tested up to:
|
| 7 |
-
Stable tag: 3.0.
|
| 8 |
|
| 9 |
== Description ==
|
| 10 |
|
|
@@ -89,10 +89,14 @@ This is possible if your server or network is blocking outgoing calls to Crowdsi
|
|
| 89 |
Make sure to whitelist `api.crowdsignal.com` in your firewall to fix this.
|
| 90 |
|
| 91 |
== Upgrade Notice ==
|
| 92 |
-
|
| 93 |
|
| 94 |
== Changelog ==
|
| 95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
= 3.0.8
|
| 97 |
* Bug and security fixes
|
| 98 |
* Improve code readability
|
| 3 |
Tags: crowdsignal, polls, poll, polldaddy, wppolls, vote, polling, surveys, rate, rating, ratings
|
| 4 |
Requires at least: 5.5
|
| 5 |
Requires PHP: 5.6
|
| 6 |
+
Tested up to: 6.0
|
| 7 |
+
Stable tag: 3.0.9
|
| 8 |
|
| 9 |
== Description ==
|
| 10 |
|
| 89 |
Make sure to whitelist `api.crowdsignal.com` in your firewall to fix this.
|
| 90 |
|
| 91 |
== Upgrade Notice ==
|
| 92 |
+
Bug and security fixes
|
| 93 |
|
| 94 |
== Changelog ==
|
| 95 |
|
| 96 |
+
= 3.0.9
|
| 97 |
+
* Prevent warnings due to by-ref arguments
|
| 98 |
+
* Improve renderer syntax
|
| 99 |
+
|
| 100 |
= 3.0.8
|
| 101 |
* Bug and security fixes
|
| 102 |
* Improve code readability
|
