Version Description
- Bug Fix: Added fix for open/close poll
Download this release
Release Info
| Developer | eoigal |
| Plugin | |
| Version | 1.7.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.7.1 to 1.7.2
- polldaddy-client.php +30 -0
- polldaddy.php +2 -2
- readme.txt +4 -1
polldaddy-client.php
CHANGED
|
@@ -365,6 +365,36 @@ class api_client {
|
|
| 365 |
return empty( $this->errors );
|
| 366 |
}
|
| 367 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 368 |
/**
|
| 369 |
* @see polldaddy_poll()
|
| 370 |
* @param array $args polldaddy_poll() args
|
| 365 |
return empty( $this->errors );
|
| 366 |
}
|
| 367 |
|
| 368 |
+
/**
|
| 369 |
+
* @param int $id PollDaddy Poll ID
|
| 370 |
+
* @return bool success
|
| 371 |
+
*/
|
| 372 |
+
function open_poll( $id ) {
|
| 373 |
+
if ( !$id = (int) $id )
|
| 374 |
+
return false;
|
| 375 |
+
|
| 376 |
+
// $pos = $this->add_request( __FUNCTION__, new PollDaddy_Poll( null, compact( 'id' ) ) );
|
| 377 |
+
$pos = $this->add_request( 'openpoll', new PollDaddy_Poll( null, compact( 'id' ) ) );
|
| 378 |
+
$this->send_request();
|
| 379 |
+
|
| 380 |
+
return empty( $this->errors );
|
| 381 |
+
}
|
| 382 |
+
|
| 383 |
+
/**
|
| 384 |
+
* @param int $id PollDaddy Poll ID
|
| 385 |
+
* @return bool success
|
| 386 |
+
*/
|
| 387 |
+
function close_poll( $id ) {
|
| 388 |
+
if ( !$id = (int) $id )
|
| 389 |
+
return false;
|
| 390 |
+
|
| 391 |
+
// $pos = $this->add_request( __FUNCTION__, new PollDaddy_Poll( null, compact( 'id' ) ) );
|
| 392 |
+
$pos = $this->add_request( 'closepoll', new PollDaddy_Poll( null, compact( 'id' ) ) );
|
| 393 |
+
$this->send_request();
|
| 394 |
+
|
| 395 |
+
return empty( $this->errors );
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
/**
|
| 399 |
* @see polldaddy_poll()
|
| 400 |
* @param array $args polldaddy_poll() args
|
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 |
|
| 5 |
Description: Create and manage PollDaddy polls in WordPress
|
| 6 |
Author: Automattic, Inc.
|
| 7 |
Author URL: http://automattic.com/
|
| 8 |
+
Version: 1.7.2
|
| 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.2';
|
| 28 |
|
| 29 |
var $polldaddy_clients = array();
|
| 30 |
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ 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.
|
| 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.1 =
|
| 36 |
* Bug Fix: Answer text in results now displaying the correct text
|
| 37 |
|
| 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.2
|
| 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.2 =
|
| 36 |
+
* Bug Fix: Added fix for open/close poll
|
| 37 |
+
|
| 38 |
= 1.7.1 =
|
| 39 |
* Bug Fix: Answer text in results now displaying the correct text
|
| 40 |
|
