Scripts n Styles - Version 3.5.1

Version Description

  • Fix JS error in Classic mode
Download this release

Release Info

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

Code changes from version 3.5 to 3.5.1

Files changed (3) hide show
  1. README.txt +4 -1
  2. js/meta-box.js +1 -1
  3. scripts-n-styles.php +3 -3
README.txt CHANGED
@@ -4,7 +4,7 @@ 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
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -59,6 +59,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 =
63
  * Fix some functionality for Gutenberg
64
  * Add arbitrary HTML fields
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
 
59
 
60
  == Changelog ==
61
 
62
+ = 3.5.1 =
63
+ * Fix JS error in Classic mode
64
+
65
  = 3.5 =
66
  * Fix some functionality for Gutenberg
67
  * Add arbitrary HTML fields
js/meta-box.js CHANGED
@@ -39,7 +39,7 @@ jQuery( document ).ready( function( $ ) {
39
 
40
  refreshDeleteBtns();
41
 
42
- if ( wp.data && wp.data.select ) {
43
  var editPost = wp.data.select( 'core/edit-post' );
44
  wp.data.subscribe( function() {
45
  if ( editPost.isSavingMetaBoxes() ) {
39
 
40
  refreshDeleteBtns();
41
 
42
+ if ( gutenMCE && wp.data && wp.data.select ) {
43
  var editPost = wp.data.select( 'core/edit-post' );
44
  wp.data.subscribe( function() {
45
  if ( editPost.isSavingMetaBoxes() ) {
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.5.0
9
  License: GPLv3 or later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
  Text Domain: scripts-n-styles
@@ -62,7 +62,7 @@ endif;
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.0
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 +80,7 @@ class Scripts_n_Styles
80
  /**#@+
81
  * @static
82
  */
83
- const VERSION = '3.5.0';
84
  static $file = __FILE__;
85
  static $cm_themes = array( 'default', '3024-day', '3024-night', 'ambiance',
86
  '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.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
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
  /**#@+
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',