Version Description
Download this release
Release Info
Developer | WraithKenny |
Plugin | Scripts n Styles |
Version | 3.4.0 |
Comparing to | |
See all releases |
Code changes from version 3.3.2 to 3.4.0
- README.txt +9 -3
- includes/class-sns-settings-page.php +15 -0
- scripts-n-styles.php +3 -3
- uninstall.php +7 -1
README.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Scripts n Styles ===
|
2 |
Contributors: WraithKenny, CaptainN
|
3 |
Tags: admin, CSS, javascript, code, custom, Style
|
4 |
-
Requires at least: 4.
|
5 |
-
Tested up to: 4.7.
|
6 |
-
Stable tag: 3.
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -58,6 +58,12 @@ Sure, if you are an Admin, just go to the plugin editor and wipe out the uninsta
|
|
58 |
|
59 |
== Changelog ==
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
= 3.3 =
|
62 |
* See the github repo commits
|
63 |
|
1 |
=== Scripts n Styles ===
|
2 |
Contributors: WraithKenny, CaptainN
|
3 |
Tags: admin, CSS, javascript, code, custom, Style
|
4 |
+
Requires at least: 4.7.2
|
5 |
+
Tested up to: 4.7.3
|
6 |
+
Stable tag: 3.4.0
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
58 |
|
59 |
== Changelog ==
|
60 |
|
61 |
+
= 3.4 =
|
62 |
+
* Add option to not delete data on uninstall
|
63 |
+
* Version 4.0 will drop php support under 5.4
|
64 |
+
* This version disables updates for installs with php < 5.4
|
65 |
+
* 4.0 will launch when most have updated to 3.4 :) (and when it's done.)
|
66 |
+
|
67 |
= 3.3 =
|
68 |
* See the github repo commits
|
69 |
|
includes/class-sns-settings-page.php
CHANGED
@@ -133,6 +133,21 @@ class SnS_Settings_Page
|
|
133 |
'legend' => __( 'Shortcode Widgets', 'scripts-n-styles' ),
|
134 |
'description' => __( '<span class="description" style="max-width: 500px; display: inline-block;">This enables Hoops shortcodes to be used via a "Hoops" Text Widget.</span>', 'scripts-n-styles' )
|
135 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
}
|
137 |
|
138 |
/**
|
133 |
'legend' => __( 'Shortcode Widgets', 'scripts-n-styles' ),
|
134 |
'description' => __( '<span class="description" style="max-width: 500px; display: inline-block;">This enables Hoops shortcodes to be used via a "Hoops" Text Widget.</span>', 'scripts-n-styles' )
|
135 |
) );
|
136 |
+
add_settings_field(
|
137 |
+
'delete_data_uninstall',
|
138 |
+
__( '<strong>Delete Data When Uninstalling</strong>: ', 'scripts-n-styles' ),
|
139 |
+
array( 'SnS_Form', 'radio' ),
|
140 |
+
SnS_Admin::MENU_SLUG,
|
141 |
+
'settings',
|
142 |
+
array(
|
143 |
+
'label_for' => 'delete_data_uninstall',
|
144 |
+
'setting' => 'SnS_options',
|
145 |
+
'choices' => array( 'yes', 'no' ),
|
146 |
+
'layout' => 'horizontal',
|
147 |
+
'default' => 'no',
|
148 |
+
'legend' => __( 'Delete Data When Uninstalling', 'scripts-n-styles' ),
|
149 |
+
'description' => __( '<span class="description" style="max-width: 500px; display: inline-block;">Should the plugin clean up after itself and delete all of its saved data.</span>', 'scripts-n-styles' )
|
150 |
+
) );
|
151 |
}
|
152 |
|
153 |
/**
|
scripts-n-styles.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.unfocus.com/projects/scripts-n-styles/
|
|
5 |
Description: Allows WordPress admin users the ability to add custom CSS and JavaScript directly to individual Post, Pages or custom post types.
|
6 |
Author: unFocus Projects
|
7 |
Author URI: http://www.unfocus.com/
|
8 |
-
Version: 3.
|
9 |
License: GPLv3 or later
|
10 |
Text Domain: scripts-n-styles
|
11 |
*/
|
@@ -60,7 +60,7 @@ endif;
|
|
60 |
* @link http://www.unfocus.com/projects/scripts-n-styles/ Plugin URI
|
61 |
* @author unFocus Projects
|
62 |
* @link http://www.unfocus.com/ Author URI
|
63 |
-
* @version 3.
|
64 |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
65 |
* @copyright Copyright (c) 2010 - 2013, Kenneth Newman
|
66 |
* @copyright Copyright (c) 2012, Kevin Newman
|
@@ -78,7 +78,7 @@ class Scripts_n_Styles
|
|
78 |
/**#@+
|
79 |
* @static
|
80 |
*/
|
81 |
-
const VERSION = '3.
|
82 |
static $file = __FILE__;
|
83 |
static $cm_themes = array( 'default', '3024-day', '3024-night', 'ambiance',
|
84 |
'base16-dark', 'base16-light',
|
5 |
Description: Allows WordPress admin users the ability to add custom CSS and JavaScript directly to individual Post, Pages or custom post types.
|
6 |
Author: unFocus Projects
|
7 |
Author URI: http://www.unfocus.com/
|
8 |
+
Version: 3.4.0
|
9 |
License: GPLv3 or later
|
10 |
Text Domain: scripts-n-styles
|
11 |
*/
|
60 |
* @link http://www.unfocus.com/projects/scripts-n-styles/ Plugin URI
|
61 |
* @author unFocus Projects
|
62 |
* @link http://www.unfocus.com/ Author URI
|
63 |
+
* @version 3.4.0
|
64 |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
65 |
* @copyright Copyright (c) 2010 - 2013, Kenneth Newman
|
66 |
* @copyright Copyright (c) 2012, Kevin Newman
|
78 |
/**#@+
|
79 |
* @static
|
80 |
*/
|
81 |
+
const VERSION = '3.4.0';
|
82 |
static $file = __FILE__;
|
83 |
static $cm_themes = array( 'default', '3024-day', '3024-night', 'ambiance',
|
84 |
'base16-dark', 'base16-light',
|
uninstall.php
CHANGED
@@ -1,5 +1,11 @@
|
|
1 |
<?php
|
2 |
-
if( ! defined( 'ABSPATH' )
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
$posts = get_posts( array(
|
4 |
'numberposts' => -1,
|
5 |
'post_type' => 'any',
|
1 |
<?php
|
2 |
+
if( ! defined( 'ABSPATH' ) || ! defined( 'WP_UNINSTALL_PLUGIN' ) ) exit();
|
3 |
+
|
4 |
+
$options = get_option( 'SnS_options' );
|
5 |
+
if ( empty($options['delete_data_uninstall']) || 'yes' !== $options['delete_data_uninstall'] ) {
|
6 |
+
return;
|
7 |
+
}
|
8 |
+
|
9 |
$posts = get_posts( array(
|
10 |
'numberposts' => -1,
|
11 |
'post_type' => 'any',
|