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

Version Description

N/A

Download this release

Release Info

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

Code changes from version 19.2.6 to 19.2.7

includes/opinionstage-utility-functions.php CHANGED
@@ -6,7 +6,7 @@ defined( 'ABSPATH' ) or die();
6
  /**
7
  * Utility function to create a link with the correct host and all the required information.
8
  */
9
- function opinionstage_link($caption, $path, $css_class = '', $query_data = []) {
10
  $query_data['o'] = OPINIONSTAGE_WIDGET_API_KEY;
11
 
12
  $link = OPINIONSTAGE_SERVER_BASE.'/'.$path.'?'.http_build_query($query_data);
@@ -87,7 +87,7 @@ function opinionstage_sidebar_placement_edit_url($tab) {
87
  }
88
 
89
  function opinionstage_create_poll_link($css_class, $title='CREATE') {
90
- return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, ['w_type' => 'poll']);
91
 
92
  }
93
 
@@ -96,11 +96,11 @@ function opinionstage_create_poll_set_link($css_class, $title='CREATE') {
96
  }
97
 
98
  function opinionstage_create_widget_link($w_type, $css_class, $title='CREATE') {
99
- return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, ['w_type' => $w_type]);
100
  }
101
 
102
  function opinionstage_create_slideshow_link( $css_class, $title='CREATE' ) {
103
- return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, ['w_type' => 'slideshow']);
104
  }
105
  /**
106
  * Generates a to the callback page used to connect the plugin to the Opinion Stage account
@@ -129,7 +129,7 @@ function opinionstage_add_modal_opening_to_url_params($url) {
129
  * Generates a link to Opinion Stage that requires registration
130
  */
131
  function opinionstage_logged_in_link($text, $link) {
132
- return opinionstage_link($text, 'registrations/new', '', ['return_to' => $link]);
133
  }
134
  /**
135
  * Take the received data and parse it
6
  /**
7
  * Utility function to create a link with the correct host and all the required information.
8
  */
9
+ function opinionstage_link($caption, $path, $css_class = '', $query_data = array()) {
10
  $query_data['o'] = OPINIONSTAGE_WIDGET_API_KEY;
11
 
12
  $link = OPINIONSTAGE_SERVER_BASE.'/'.$path.'?'.http_build_query($query_data);
87
  }
88
 
89
  function opinionstage_create_poll_link($css_class, $title='CREATE') {
90
+ return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, array('w_type' => 'poll'));
91
 
92
  }
93
 
96
  }
97
 
98
  function opinionstage_create_widget_link($w_type, $css_class, $title='CREATE') {
99
+ return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, array('w_type' => $w_type));
100
  }
101
 
102
  function opinionstage_create_slideshow_link( $css_class, $title='CREATE' ) {
103
+ return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, array('w_type' => 'slideshow'));
104
  }
105
  /**
106
  * Generates a to the callback page used to connect the plugin to the Opinion Stage account
129
  * Generates a link to Opinion Stage that requires registration
130
  */
131
  function opinionstage_logged_in_link($text, $link) {
132
+ return opinionstage_link($text, 'registrations/new', '', array('return_to' => $link));
133
  }
134
  /**
135
  * Take the received data and parse it
opinionstage-polls.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Poll, Survey, Quiz, Slideshow & Form Builder
4
  Plugin URI: http://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.2.6
7
  Author: OpinionStage.com
8
  Author URI: http://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.2.6');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
3
  Plugin Name: Poll, Survey, Quiz, Slideshow & Form Builder
4
  Plugin URI: http://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.2.7
7
  Author: OpinionStage.com
8
  Author URI: http://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
24
  }
25
  }
26
 
27
+ define('OPINIONSTAGE_WIDGET_VERSION', '19.2.7');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.opinionstage.com
4
  Tags: poll, quiz, survey, form builder, slideshow
5
  Requires at least: 2.8
6
  Tested up to: 4.9
7
- Stable tag: 19.2.6
8
 
9
  Add a poll, survey, quiz, slideshow & form builder plugin. Easily add a beautiful poll, survey, quiz, slideshow or form to your site.
10
 
@@ -292,6 +292,8 @@ You can create many different types of quizzes: Trivia quiz, personality quiz, i
292
  N/A
293
 
294
  == Changelog ==
 
 
295
  = Poll, Survey, Quiz, Slideshow & Form Builder Version 19.2.6 =
296
  * fix links to content
297
  = Poll, Survey, Quiz, Slideshow & Form Builder Version 19.2.5 =
4
  Tags: poll, quiz, survey, form builder, slideshow
5
  Requires at least: 2.8
6
  Tested up to: 4.9
7
+ Stable tag: 19.2.7
8
 
9
  Add a poll, survey, quiz, slideshow & form builder plugin. Easily add a beautiful poll, survey, quiz, slideshow or form to your site.
10
 
292
  N/A
293
 
294
  == Changelog ==
295
+ = Poll, Survey, Quiz, Slideshow & Form Builder Version 19.2.7 =
296
+ * fix PHP installations older than 5.4
297
  = Poll, Survey, Quiz, Slideshow & Form Builder Version 19.2.6 =
298
  * fix links to content
299
  = Poll, Survey, Quiz, Slideshow & Form Builder Version 19.2.5 =