Version Description
- fix login issue
- add disconnect button to "getting started" screen
Download this release
Release Info
Developer | kucaahbe |
Plugin | Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page |
Version | 19.6.31 |
Comparing to | |
See all releases |
Code changes from version 19.6.30 to 19.6.31
- admin/opinionstage-content-login-callback.php +1 -1
- admin/opinionstage-disconnect.php +2 -2
- admin/opinionstage-login-callback.php +1 -1
- admin/views/getting_started.php +14 -3
- admin/views/my_placements.php +1 -1
- admin/views/settings.php +1 -2
- admin/views/view_my_items.php +1 -1
- opinionstage-polls.php +1 -1
- plugin.php +3 -2
- readme.txt +4 -1
admin/opinionstage-content-login-callback.php
CHANGED
@@ -26,7 +26,7 @@ function opinionstage_login_content_callback() {
|
|
26 |
|
27 |
if ( OPINIONSTAGE_CONTENT_LOGIN_CALLBACK_SLUG == filter_input( INPUT_GET, 'page' ) && is_user_logged_in() && current_user_can('edit_posts') ) {
|
28 |
$success = sanitize_text_field($_GET['success']);
|
29 |
-
$uid =
|
30 |
$token = sanitize_text_field($_GET['token']);
|
31 |
$email = sanitize_email($_GET['email']);
|
32 |
$fly_id = intval($_GET['fly_id']);
|
26 |
|
27 |
if ( OPINIONSTAGE_CONTENT_LOGIN_CALLBACK_SLUG == filter_input( INPUT_GET, 'page' ) && is_user_logged_in() && current_user_can('edit_posts') ) {
|
28 |
$success = sanitize_text_field($_GET['success']);
|
29 |
+
$uid = sanitize_text_field($_GET['uid']);
|
30 |
$token = sanitize_text_field($_GET['token']);
|
31 |
$email = sanitize_email($_GET['email']);
|
32 |
$fly_id = intval($_GET['fly_id']);
|
admin/opinionstage-disconnect.php
CHANGED
@@ -14,14 +14,14 @@ function opinionstage_disconnect_account_menu(){
|
|
14 |
'',
|
15 |
'',
|
16 |
'edit_posts',
|
17 |
-
|
18 |
);
|
19 |
}
|
20 |
}
|
21 |
|
22 |
// performs redirect to plugin settings page, after user logout
|
23 |
function opinionstage_disconnect_account_action() {
|
24 |
-
if (
|
25 |
delete_option(OPINIONSTAGE_OPTIONS_KEY);
|
26 |
|
27 |
$redirect_url = get_admin_url(null, 'admin.php?page='.OPINIONSTAGE_GETTING_STARTED_SLUG);
|
14 |
'',
|
15 |
'',
|
16 |
'edit_posts',
|
17 |
+
OPINIONSTAGE_DISCONNECT_PAGE
|
18 |
);
|
19 |
}
|
20 |
}
|
21 |
|
22 |
// performs redirect to plugin settings page, after user logout
|
23 |
function opinionstage_disconnect_account_action() {
|
24 |
+
if ( OPINIONSTAGE_DISCONNECT_PAGE === filter_input(INPUT_GET, 'page') && $_SERVER['REQUEST_METHOD'] === 'POST' ) {
|
25 |
delete_option(OPINIONSTAGE_OPTIONS_KEY);
|
26 |
|
27 |
$redirect_url = get_admin_url(null, 'admin.php?page='.OPINIONSTAGE_GETTING_STARTED_SLUG);
|
admin/opinionstage-login-callback.php
CHANGED
@@ -27,7 +27,7 @@ function opinionstage_login_callback() {
|
|
27 |
|
28 |
if ( OPINIONSTAGE_LOGIN_CALLBACK_SLUG == filter_input( INPUT_GET, 'page' ) ) {
|
29 |
$success = sanitize_text_field($_GET['success']);
|
30 |
-
$uid =
|
31 |
$token = sanitize_text_field($_GET['token']);
|
32 |
$email = sanitize_email($_GET['email']);
|
33 |
$fly_id = intval($_GET['fly_id']);
|
27 |
|
28 |
if ( OPINIONSTAGE_LOGIN_CALLBACK_SLUG == filter_input( INPUT_GET, 'page' ) ) {
|
29 |
$success = sanitize_text_field($_GET['success']);
|
30 |
+
$uid = sanitize_text_field($_GET['uid']);
|
31 |
$token = sanitize_text_field($_GET['token']);
|
32 |
$email = sanitize_email($_GET['email']);
|
33 |
$fly_id = intval($_GET['fly_id']);
|
admin/views/getting_started.php
CHANGED
@@ -4,9 +4,20 @@ defined( 'ABSPATH' ) or die();
|
|
4 |
?>
|
5 |
<div id="opinionstage-content">
|
6 |
<div class="opinionstage-header-wrapper">
|
7 |
-
|
8 |
-
<div class="opinionstage-logo"
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
</div>
|
11 |
<?php if( $os_client_logged_in ){ ?>
|
12 |
<div class="gettingStartedSection">
|
4 |
?>
|
5 |
<div id="opinionstage-content">
|
6 |
<div class="opinionstage-header-wrapper">
|
7 |
+
<?php if ( !$os_client_logged_in ) {?>
|
8 |
+
<div class="opinionstage-logo-wrapper">
|
9 |
+
<div class="opinionstage-logo"></div>
|
10 |
+
</div>
|
11 |
+
<?php } else { ?>
|
12 |
+
<div class="opinionstage-logo-wrapper">
|
13 |
+
<div class="opinionstage-logo"></div>
|
14 |
+
<div class="opinionstage-connectivity-status"><?php echo($os_options["email"]); ?>
|
15 |
+
<form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page='.OPINIONSTAGE_DISCONNECT_PAGE)?>" class="opinionstage-connect-form">
|
16 |
+
<button class="opinionstage-disconnect" type="submit">Disconnect</button>
|
17 |
+
</form>
|
18 |
+
</div>
|
19 |
+
</div>
|
20 |
+
<?php } ?>
|
21 |
</div>
|
22 |
<?php if( $os_client_logged_in ){ ?>
|
23 |
<div class="gettingStartedSection">
|
admin/views/my_placements.php
CHANGED
@@ -25,7 +25,7 @@ defined( 'ABSPATH' ) or die();
|
|
25 |
<div class="opinionstage-logo-wrapper">
|
26 |
<div class="opinionstage-logo"></div>
|
27 |
<div class="opinionstage-connectivity-status"><?php echo($os_options["email"]); ?>
|
28 |
-
<form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page=
|
29 |
<button class="opinionstage-disconnect" type="submit">Disconnect</button>
|
30 |
</form>
|
31 |
</div>
|
25 |
<div class="opinionstage-logo-wrapper">
|
26 |
<div class="opinionstage-logo"></div>
|
27 |
<div class="opinionstage-connectivity-status"><?php echo($os_options["email"]); ?>
|
28 |
+
<form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page='.OPINIONSTAGE_DISCONNECT_PAGE)?>" class="opinionstage-connect-form">
|
29 |
<button class="opinionstage-disconnect" type="submit">Disconnect</button>
|
30 |
</form>
|
31 |
</div>
|
admin/views/settings.php
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
// block direct access to plugin PHP files:
|
3 |
defined( 'ABSPATH' ) or die();
|
4 |
?>
|
5 |
-
|
6 |
<div id="opinionstage-content">
|
7 |
<div class="opinionstage-header-wrapper">
|
8 |
<?php if ( !$os_client_logged_in ) {?>
|
@@ -25,7 +24,7 @@ defined( 'ABSPATH' ) or die();
|
|
25 |
<div class="opinionstage-logo-wrapper">
|
26 |
<div class="opinionstage-logo"></div>
|
27 |
<div class="opinionstage-connectivity-status"><?php echo($os_options["email"]); ?>
|
28 |
-
<form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page=
|
29 |
<button class="opinionstage-disconnect" type="submit">Disconnect</button>
|
30 |
</form>
|
31 |
</div>
|
2 |
// block direct access to plugin PHP files:
|
3 |
defined( 'ABSPATH' ) or die();
|
4 |
?>
|
|
|
5 |
<div id="opinionstage-content">
|
6 |
<div class="opinionstage-header-wrapper">
|
7 |
<?php if ( !$os_client_logged_in ) {?>
|
24 |
<div class="opinionstage-logo-wrapper">
|
25 |
<div class="opinionstage-logo"></div>
|
26 |
<div class="opinionstage-connectivity-status"><?php echo($os_options["email"]); ?>
|
27 |
+
<form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page='.OPINIONSTAGE_DISCONNECT_PAGE)?>" class="opinionstage-connect-form">
|
28 |
<button class="opinionstage-disconnect" type="submit">Disconnect</button>
|
29 |
</form>
|
30 |
</div>
|
admin/views/view_my_items.php
CHANGED
@@ -8,7 +8,7 @@ defined( 'ABSPATH' ) or die(1); ?>
|
|
8 |
<div class="opinionstage-logo-wrapper">
|
9 |
<div class="opinionstage-logo"></div>
|
10 |
<div class="opinionstage-connectivity-status"><?php echo($os_options["email"]); ?>
|
11 |
-
<form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page=
|
12 |
<button class="opinionstage-disconnect" type="submit">Disconnect</button>
|
13 |
</form>
|
14 |
</div>
|
8 |
<div class="opinionstage-logo-wrapper">
|
9 |
<div class="opinionstage-logo"></div>
|
10 |
<div class="opinionstage-connectivity-status"><?php echo($os_options["email"]); ?>
|
11 |
+
<form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page='.OPINIONSTAGE_DISCONNECT_PAGE)?>" class="opinionstage-connect-form">
|
12 |
<button class="opinionstage-disconnect" type="submit">Disconnect</button>
|
13 |
</form>
|
14 |
</div>
|
opinionstage-polls.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage (Deprecated)
|
4 |
Plugin URI: https://www.opinionstage.com
|
5 |
Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
|
6 |
-
Version: 19.6.
|
7 |
Author: OpinionStage.com
|
8 |
Author URI: https://www.opinionstage.com
|
9 |
Text Domain: social-polls-by-opinionstage
|
3 |
Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage (Deprecated)
|
4 |
Plugin URI: https://www.opinionstage.com
|
5 |
Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
|
6 |
+
Version: 19.6.31
|
7 |
Author: OpinionStage.com
|
8 |
Author URI: https://www.opinionstage.com
|
9 |
Text Domain: social-polls-by-opinionstage
|
plugin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage
|
4 |
Plugin URI: https://www.opinionstage.com
|
5 |
Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
|
6 |
-
Version: 19.6.
|
7 |
Author: OpinionStage.com
|
8 |
Author URI: https://www.opinionstage.com
|
9 |
Text Domain: social-polls-by-opinionstage
|
@@ -24,7 +24,7 @@ if ( defined('WP_DEBUG') && true === WP_DEBUG ) {
|
|
24 |
}
|
25 |
}
|
26 |
|
27 |
-
define('OPINIONSTAGE_WIDGET_VERSION', '19.6.
|
28 |
|
29 |
define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
|
30 |
|
@@ -55,6 +55,7 @@ define('OPINIONSTAGE_GETTING_STARTED_SLUG', 'opinionstage-getting-started');
|
|
55 |
define('OPINIONSTAGE_VIEW_ITEM_SLUG', 'opinionstage-view-my-items');
|
56 |
|
57 |
define('OPINIONSTAGE_LOGIN_CALLBACK_SLUG', 'opinionstage-login-callback');
|
|
|
58 |
define('OPINIONSTAGE_CONTENT_LOGIN_CALLBACK_SLUG', 'opinionstage-content-login-callback-page');
|
59 |
|
60 |
if ( ! version_compare( PHP_VERSION, '5.2', '>=' ) ) {
|
3 |
Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage
|
4 |
Plugin URI: https://www.opinionstage.com
|
5 |
Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
|
6 |
+
Version: 19.6.31
|
7 |
Author: OpinionStage.com
|
8 |
Author URI: https://www.opinionstage.com
|
9 |
Text Domain: social-polls-by-opinionstage
|
24 |
}
|
25 |
}
|
26 |
|
27 |
+
define('OPINIONSTAGE_WIDGET_VERSION', '19.6.31');
|
28 |
|
29 |
define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
|
30 |
|
55 |
define('OPINIONSTAGE_VIEW_ITEM_SLUG', 'opinionstage-view-my-items');
|
56 |
|
57 |
define('OPINIONSTAGE_LOGIN_CALLBACK_SLUG', 'opinionstage-login-callback');
|
58 |
+
define('OPINIONSTAGE_DISCONNECT_PAGE', 'opinionstage-disconnect-page');
|
59 |
define('OPINIONSTAGE_CONTENT_LOGIN_CALLBACK_SLUG', 'opinionstage-content-login-callback-page');
|
60 |
|
61 |
if ( ! version_compare( PHP_VERSION, '5.2', '>=' ) ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.opinionstage.com
|
|
4 |
Tags: poll, quiz, survey, form
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.2.2
|
7 |
-
Stable tag: 19.6.
|
8 |
Requires PHP: 5.2
|
9 |
|
10 |
Add Polls, Surveys or Quizzes to your Wordpress site. Create from scratch or based on templates. Get started in seconds.
|
@@ -116,6 +116,9 @@ Opinion Stage makes it easy for you to comply with the GDPR regulation. For more
|
|
116 |
N/A
|
117 |
|
118 |
== Changelog ==
|
|
|
|
|
|
|
119 |
= 19.6.30 =
|
120 |
* fix sidebar on/off checkbox
|
121 |
= 19.6.29 =
|
4 |
Tags: poll, quiz, survey, form
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.2.2
|
7 |
+
Stable tag: 19.6.31
|
8 |
Requires PHP: 5.2
|
9 |
|
10 |
Add Polls, Surveys or Quizzes to your Wordpress site. Create from scratch or based on templates. Get started in seconds.
|
116 |
N/A
|
117 |
|
118 |
== Changelog ==
|
119 |
+
= 19.6.31 =
|
120 |
+
* fix login issue
|
121 |
+
* add disconnect button to "getting started" screen
|
122 |
= 19.6.30 =
|
123 |
* fix sidebar on/off checkbox
|
124 |
= 19.6.29 =
|