Scripts n Styles - Version 3.4.1

Version Description

  • Fix meta box saving.
Download this release

Release Info

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

Code changes from version 3.4.0 to 3.4.1

README.txt CHANGED
@@ -2,8 +2,8 @@
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,6 +58,9 @@ Sure, if you are an Admin, just go to the plugin editor and wipe out the uninsta
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
2
  Contributors: WraithKenny, CaptainN
3
  Tags: admin, CSS, javascript, code, custom, Style
4
  Requires at least: 4.7.2
5
+ Tested up to: 4.8
6
+ Stable tag: 3.4.1
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.1 =
62
+ * Fix meta box saving.
63
+
64
  = 3.4 =
65
  * Add option to not delete data on uninstall
66
  * Version 4.0 will drop php support under 5.4
includes/class-sns-meta-box.php CHANGED
@@ -333,6 +333,7 @@ class SnS_Admin_Meta_Box
333
  */
334
 
335
  $SnS = get_post_meta( $post_id, '_SnS', true );
 
336
  $scripts = isset( $SnS['scripts'] ) ? $SnS[ 'scripts' ]: array();
337
  $styles = isset( $SnS['styles'] ) ? $SnS[ 'styles' ]: array();
338
 
333
  */
334
 
335
  $SnS = get_post_meta( $post_id, '_SnS', true );
336
+ $SnS = is_array( $SnS ) ? $SnS: array(); // Something changed in PHP 7/WP 4.8
337
  $scripts = isset( $SnS['scripts'] ) ? $SnS[ 'scripts' ]: array();
338
  $styles = isset( $SnS['styles'] ) ? $SnS[ 'styles' ]: array();
339
 
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.4.0
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.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,7 +78,7 @@ class Scripts_n_Styles
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',
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.1
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.1
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.1';
82
  static $file = __FILE__;
83
  static $cm_themes = array( 'default', '3024-day', '3024-night', 'ambiance',
84
  'base16-dark', 'base16-light',