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

Version Description

  • plugin rename: improved fix
Download this release

Release Info

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

Code changes from version 19.6.0 to 19.6.1

Files changed (3) hide show
  1. opinionstage-polls.php +9 -2
  2. plugin.php +6 -3
  3. readme.txt +3 -1
opinionstage-polls.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Poll, Survey, Quiz, Slideshow, Form & Story Article (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.0
7
  Author: OpinionStage.com
8
  Author URI: https://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
@@ -25,8 +25,15 @@ function opinionstage_plugin_activate() {
25
  register_activation_hook( __FILE__, 'opinionstage_plugin_activate' );
26
 
27
  function opinionstage_shutdown(){
 
 
 
 
 
 
 
 
28
  deactivate_plugins( plugin_basename( __FILE__ ) );
29
- unlink(__DIR__ . '/opinionstage-polls.php');
30
  }
31
  add_action('shutdown', 'opinionstage_shutdown');
32
  ?>
3
  Plugin Name: Poll, Survey, Quiz, Slideshow, Form & Story Article (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.1
7
  Author: OpinionStage.com
8
  Author URI: https://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
25
  register_activation_hook( __FILE__, 'opinionstage_plugin_activate' );
26
 
27
  function opinionstage_shutdown(){
28
+ // update in database
29
+ $plugins = get_option('active_plugins');
30
+
31
+ $plugins = array_diff($plugins, array("social-polls-by-opinionstage/opinionstage-polls.php"));
32
+ $plugins[] = "social-polls-by-opinionstage/plugin.php";
33
+
34
+ update_option('active_plugins', $plugins);
35
+
36
  deactivate_plugins( plugin_basename( __FILE__ ) );
 
37
  }
38
  add_action('shutdown', 'opinionstage_shutdown');
39
  ?>
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Poll, Survey, Quiz, Slideshow, Form & Story Article
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.0
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.0');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
@@ -53,9 +53,12 @@ define('OPINIONSTAGE_LOGIN_CALLBACK_SLUG', 'opinionstage-login-callback');
53
  // Check if active plugin file is plugin.php on plugin activate hook
54
  function opinionstage_plugin_activate() {
55
  // all good. delete old file
56
- unlink(__DIR__ . '/opinionstage-polls.php');
 
 
57
  }
58
  register_activation_hook( __FILE__, 'opinionstage_plugin_activate' );
 
59
 
60
  require_once( plugin_dir_path( __FILE__ ).'includes/opinionstage-functions.php' );
61
 
3
  Plugin Name: Poll, Survey, Quiz, Slideshow, Form & Story Article
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.1
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.1');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
53
  // Check if active plugin file is plugin.php on plugin activate hook
54
  function opinionstage_plugin_activate() {
55
  // all good. delete old file
56
+ if( file_exists(__DIR__ . '/opinionstage-polls.php') ){
57
+ unlink(__DIR__ . '/opinionstage-polls.php');
58
+ }
59
  }
60
  register_activation_hook( __FILE__, 'opinionstage_plugin_activate' );
61
+ add_action( 'init', 'opinionstage_plugin_activate' );
62
 
63
  require_once( plugin_dir_path( __FILE__ ).'includes/opinionstage-functions.php' );
64
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.opinionstage.com
4
  Tags: poll, quiz, survey, form, slideshow, story, article
5
  Requires at least: 2.8
6
  Tested up to: 4.9
7
- Stable tag: 19.6.0
8
 
9
  Easily add polls, surveys, quizzes, slideshows, forms & story article to your website. 
10
 
@@ -178,6 +178,8 @@ Polls include one question for getting a quick answer on a question. Polls are o
178
  N/A
179
 
180
  == Changelog ==
 
 
181
  = 19.6.0 =
182
  * Plugin filename fix
183
  * Backward Compatibility added
4
  Tags: poll, quiz, survey, form, slideshow, story, article
5
  Requires at least: 2.8
6
  Tested up to: 4.9
7
+ Stable tag: 19.6.1
8
 
9
  Easily add polls, surveys, quizzes, slideshows, forms & story article to your website. 
10
 
178
  N/A
179
 
180
  == Changelog ==
181
+ = 19.6.1 =
182
+ * plugin rename: improved fix
183
  = 19.6.0 =
184
  * Plugin filename fix
185
  * Backward Compatibility added