Scripts n Styles - Version 3.5.2

Version Description

  • Fix PHP 8 notice
Download this release

Release Info

Developer WraithKenny
Plugin Icon wp plugin Scripts n Styles
Version 3.5.2
Comparing to
See all releases

Code changes from version 3.5.1 to 3.5.2

Files changed (2) hide show
  1. README.txt +6 -7
  2. scripts-n-styles.php +11 -21
README.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: WraithKenny, CaptainN
3
  Tags: admin, CSS, javascript, code, custom, Style
4
  Requires at least: 5.0
5
- Tested up to: 5.0.2
6
- Requires PHP: 5.4
7
- Stable tag: 3.5.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -26,10 +26,6 @@ Because only well trusted users should ever be allowed to insert JavaScript dire
26
  * **There is no input validation.** This plugin puts exactly what you type in the meta box directly into the `html` with no error checking. You are an Admin, and we trust you to be carefull. Try not to break anything.
27
  * Do to the licensing of the libraries used, this plugin is released "GPL 3.0 or later" if you care about those things.
28
 
29
- = Contact: =
30
-
31
- You'll have better luck contacting me if you try me on [Twitter](http://twitter.com/WraithKenny1) and [Github](https://github.com/unFocus/Scripts-n-Styles/issues). I also have a day job at [Ashworth Creative](https://ashworthcreative.com/); check us out!
32
-
33
  == Installation ==
34
 
35
  This plugin does not require any special activation or template tags. Just get it from wordpress.org/extend, install and activate like normal.
@@ -59,6 +55,9 @@ Sure, if you are an Admin, just go to the plugin editor and wipe out the uninsta
59
 
60
  == Changelog ==
61
 
 
 
 
62
  = 3.5.1 =
63
  * Fix JS error in Classic mode
64
 
2
  Contributors: WraithKenny, CaptainN
3
  Tags: admin, CSS, javascript, code, custom, Style
4
  Requires at least: 5.0
5
+ Tested up to: 6.0
6
+ Requires PHP: 7.4
7
+ Stable tag: 3.5.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
26
  * **There is no input validation.** This plugin puts exactly what you type in the meta box directly into the `html` with no error checking. You are an Admin, and we trust you to be carefull. Try not to break anything.
27
  * Do to the licensing of the libraries used, this plugin is released "GPL 3.0 or later" if you care about those things.
28
 
 
 
 
 
29
  == Installation ==
30
 
31
  This plugin does not require any special activation or template tags. Just get it from wordpress.org/extend, install and activate like normal.
55
 
56
  == Changelog ==
57
 
58
+ = 3.5.2 =
59
+ * Fix PHP 8 notice
60
+
61
  = 3.5.1 =
62
  * Fix JS error in Classic mode
63
 
scripts-n-styles.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: Scripts n Styles
4
- 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.5.1
9
  License: GPLv3 or later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
  Text Domain: scripts-n-styles
@@ -13,8 +13,8 @@ Domain Path: /languages
13
  */
14
 
15
  /* The Scripts n Styles WordPress Plugin
16
- Copyright (c) 2010-2019 Kenneth Newman <http://www.unfocus.com/>
17
- Copyright (c) 2012 Kevin Newman <http://www.unfocus.com/>
18
  Copyright (c) 2012-2013 adcSTUDIO LLC <http://www.adcstudio.com/>
19
 
20
  Scripts n Styles is free software; you can redistribute it and/or
@@ -33,16 +33,6 @@ Domain Path: /languages
33
  This file incorporates work covered by other licenses and permissions.
34
  */
35
 
36
- if ( version_compare( PHP_VERSION, '5.4', '<' ) ) :
37
- function sns_disable_update( $value ) {
38
- if( isset( $value->response[plugin_basename( __FILE__ )] ) ) {
39
- unset( $value->response[plugin_basename( __FILE__ )] );
40
- }
41
- return $value;
42
- }
43
- add_filter( 'site_transient_update_plugins', 'sns_disable_update' );
44
- endif;
45
-
46
  /**
47
  * Scripts n Styles
48
  *
@@ -59,10 +49,10 @@ endif;
59
  * not deal with granting any capabilities.
60
  *
61
  * @package Scripts_n_Styles
62
- * @link http://www.unfocus.com/projects/scripts-n-styles/ Plugin URI
63
  * @author unFocus Projects
64
- * @link http://www.unfocus.com/ Author URI
65
- * @version 3.5.1
66
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
67
  * @copyright Copyright (c) 2010 - 2019, Kenneth Newman
68
  * @copyright Copyright (c) 2012, Kevin Newman
@@ -80,7 +70,7 @@ class Scripts_n_Styles
80
  /**#@+
81
  * @static
82
  */
83
- const VERSION = '3.5.1';
84
  static $file = __FILE__;
85
  static $cm_themes = array( 'default', '3024-day', '3024-night', 'ambiance',
86
  'base16-dark', 'base16-light',
@@ -157,7 +147,7 @@ class Scripts_n_Styles
157
  add_shortcode( 'sns_shortcode', array( __CLASS__, 'shortcode' ) );
158
  add_shortcode( 'hoops', array( __CLASS__, 'shortcode' ) );
159
  }
160
- static function shortcode( $atts, $content = null, $tag ) {
161
  global $post;
162
  extract( shortcode_atts( array( 'name' => 0, ), $atts ) );
163
  $output = '';
@@ -181,7 +171,7 @@ class Scripts_n_Styles
181
 
182
  return $output;
183
  }
184
- static function hoops_widget( $atts, $content = null, $tag ) {
185
  $options = get_option( 'SnS_options' );
186
  $hoops = $options['hoops']['shortcodes'];
187
 
1
  <?php
2
  /*
3
  Plugin Name: Scripts n Styles
4
+ Plugin URI: https://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: https://www.unfocus.com/
8
+ Version: 3.5.2
9
  License: GPLv3 or later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
  Text Domain: scripts-n-styles
13
  */
14
 
15
  /* The Scripts n Styles WordPress Plugin
16
+ Copyright (c) 2010-2019 Kenneth Newman <https://www.unfocus.com/>
17
+ Copyright (c) 2012 Kevin Newman <https://www.unfocus.com/>
18
  Copyright (c) 2012-2013 adcSTUDIO LLC <http://www.adcstudio.com/>
19
 
20
  Scripts n Styles is free software; you can redistribute it and/or
33
  This file incorporates work covered by other licenses and permissions.
34
  */
35
 
 
 
 
 
 
 
 
 
 
 
36
  /**
37
  * Scripts n Styles
38
  *
49
  * not deal with granting any capabilities.
50
  *
51
  * @package Scripts_n_Styles
52
+ * @link https://www.unfocus.com/projects/scripts-n-styles/ Plugin URI
53
  * @author unFocus Projects
54
+ * @link https://www.unfocus.com/ Author URI
55
+ * @version 3.5.2
56
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
57
  * @copyright Copyright (c) 2010 - 2019, Kenneth Newman
58
  * @copyright Copyright (c) 2012, Kevin Newman
70
  /**#@+
71
  * @static
72
  */
73
+ const VERSION = '3.5.2';
74
  static $file = __FILE__;
75
  static $cm_themes = array( 'default', '3024-day', '3024-night', 'ambiance',
76
  'base16-dark', 'base16-light',
147
  add_shortcode( 'sns_shortcode', array( __CLASS__, 'shortcode' ) );
148
  add_shortcode( 'hoops', array( __CLASS__, 'shortcode' ) );
149
  }
150
+ static function shortcode( $atts, $content = null ) {
151
  global $post;
152
  extract( shortcode_atts( array( 'name' => 0, ), $atts ) );
153
  $output = '';
171
 
172
  return $output;
173
  }
174
+ static function hoops_widget( $atts, $content = null ) {
175
  $options = get_option( 'SnS_options' );
176
  $hoops = $options['hoops']['shortcodes'];
177