Version Description
- Plugin filename fix
- Backward Compatibility added
Download this release
Release Info
Developer | kucaahbe |
Plugin | Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page |
Version | 19.6.0 |
Comparing to | |
See all releases |
Code changes from version 19.5.0 to 19.6.0
- opinionstage-polls.php +32 -0
- plugin.php +9 -2
- readme.txt +4 -1
opinionstage-polls.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
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
|
10 |
+
*/
|
11 |
+
|
12 |
+
// block direct access to plugin PHP files:
|
13 |
+
defined( 'ABSPATH' ) or die();
|
14 |
+
|
15 |
+
// Check if active plugin file is plugin.php on plugin activate hook
|
16 |
+
function opinionstage_plugin_activate() {
|
17 |
+
// update in database
|
18 |
+
$plugins = get_option('active_plugins');
|
19 |
+
|
20 |
+
$plugins = array_diff($plugins, array("social-polls-by-opinionstage/opinionstage-polls.php"));
|
21 |
+
$plugins[] = "social-polls-by-opinionstage/plugin.php";
|
22 |
+
|
23 |
+
update_option('active_plugins', $plugins);
|
24 |
+
}
|
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 |
+
?>
|
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.
|
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.
|
28 |
|
29 |
define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
|
30 |
|
@@ -50,6 +50,13 @@ define('OPINIONSTAGE_PLACEMENT_SHORTCODE', 'osplacement');
|
|
50 |
define('OPINIONSTAGE_MENU_SLUG', 'opinionstage-settings');
|
51 |
define('OPINIONSTAGE_LOGIN_CALLBACK_SLUG', 'opinionstage-login-callback');
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
require_once( plugin_dir_path( __FILE__ ).'includes/opinionstage-functions.php' );
|
54 |
|
55 |
// Check if another OpinionStage plugin already installed and display warning message.
|
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 |
}
|
25 |
}
|
26 |
|
27 |
+
define('OPINIONSTAGE_WIDGET_VERSION', '19.6.0');
|
28 |
|
29 |
define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
|
30 |
|
50 |
define('OPINIONSTAGE_MENU_SLUG', 'opinionstage-settings');
|
51 |
define('OPINIONSTAGE_LOGIN_CALLBACK_SLUG', 'opinionstage-login-callback');
|
52 |
|
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 |
|
62 |
// Check if another OpinionStage plugin already installed and display warning message.
|
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.
|
8 |
|
9 |
Easily add polls, surveys, quizzes, slideshows, forms & story article to your website.
|
10 |
|
@@ -178,6 +178,9 @@ Polls include one question for getting a quick answer on a question. Polls are o
|
|
178 |
N/A
|
179 |
|
180 |
== Changelog ==
|
|
|
|
|
|
|
181 |
= 19.5.0 =
|
182 |
* New navigation added
|
183 |
* Fixed placements issue
|
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 |
N/A
|
179 |
|
180 |
== Changelog ==
|
181 |
+
= 19.6.0 =
|
182 |
+
* Plugin filename fix
|
183 |
+
* Backward Compatibility added
|
184 |
= 19.5.0 =
|
185 |
* New navigation added
|
186 |
* Fixed placements issue
|