Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page - Version 19.6.27

Version Description

  • remove external curl dependency
Download this release

Release Info

Developer kucaahbe
Plugin Icon 128x128 Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page
Version 19.6.27
Comparing to
See all releases

Code changes from version 19.6.26 to 19.6.27

admin/message-handler.php CHANGED
@@ -29,9 +29,8 @@ function opinionstage_message_handler(){
29
 
30
  function opinionstage_message_api_call($last_activity_time){
31
  $api_url = OPINIONSTAGE_MESSAGE_API."?api_call_time=".$last_activity_time;
32
- $client = curl_init($api_url);
33
- curl_setopt($client, CURLOPT_RETURNTRANSFER, true);
34
- $response = curl_exec($client);
35
  $result = json_decode($response);
36
  update_option('oswp_message_last_call_time', time());
37
  // save if message is available
@@ -48,9 +47,9 @@ function opinionstage_display_wp_message(){
48
  echo '<div class="notice notice-success" id="oswp_hide_div" style="overflow: hidden; position: relative;padding-top: 10px; padding-bottom: 20px;"><img style="margin-top:8px;float: left;width:70px;margin-right: 20px;" src="https://dipika.embien.co.uk/wp-content/plugins/opinionstage-wordpress-plugin-menu-changes/admin/images/opinionstage-tracking-notice.png"><h3 style="margin-bottom:0px;margin-top: 10px;margin-left: 10px;float: none;">'.$message_title_display.'</h3><p> '.$message_content_display.'</p><div style="clear:both;"></div><button id="read_message" type="submit" class="button button-primary button-large" style="margin-left: 90px;margin-top: 10px;">Mark as Read</button><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
49
  }
50
 
51
- add_action( 'admin_footer', 'my_action_javascript' );
52
 
53
- function my_action_javascript() { ?>
54
  <script type="text/javascript">
55
  jQuery(document).ready(function($){
56
  $('button#read_message , button.notice-dismiss').on('click', function(event) {
29
 
30
  function opinionstage_message_api_call($last_activity_time){
31
  $api_url = OPINIONSTAGE_MESSAGE_API."?api_call_time=".$last_activity_time;
32
+ $response = wp_remote_get($api_url);
33
+ $response = wp_remote_retrieve_body($response);
 
34
  $result = json_decode($response);
35
  update_option('oswp_message_last_call_time', time());
36
  // save if message is available
47
  echo '<div class="notice notice-success" id="oswp_hide_div" style="overflow: hidden; position: relative;padding-top: 10px; padding-bottom: 20px;"><img style="margin-top:8px;float: left;width:70px;margin-right: 20px;" src="https://dipika.embien.co.uk/wp-content/plugins/opinionstage-wordpress-plugin-menu-changes/admin/images/opinionstage-tracking-notice.png"><h3 style="margin-bottom:0px;margin-top: 10px;margin-left: 10px;float: none;">'.$message_title_display.'</h3><p> '.$message_content_display.'</p><div style="clear:both;"></div><button id="read_message" type="submit" class="button button-primary button-large" style="margin-left: 90px;margin-top: 10px;">Mark as Read</button><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
48
  }
49
 
50
+ add_action( 'admin_footer', 'opinionstage_message_handler_javascript' );
51
 
52
+ function opinionstage_message_handler_javascript() { ?>
53
  <script type="text/javascript">
54
  jQuery(document).ready(function($){
55
  $('button#read_message , button.notice-dismiss').on('click', function(event) {
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.26
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.27
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.26
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.26');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
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.27
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.27');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
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.26
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,8 @@ Opinion Stage makes it easy for you to comply with the GDPR regulation. For more
116
  N/A
117
 
118
  == Changelog ==
 
 
119
  = 19.6.26 =
120
  * security fixes
121
  = 19.6.25 =
4
  Tags: poll, quiz, survey, form
5
  Requires at least: 2.8
6
  Tested up to: 5.2.2
7
+ Stable tag: 19.6.27
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.27 =
120
+ * remove external curl dependency
121
  = 19.6.26 =
122
  * security fixes
123
  = 19.6.25 =