Scripts n Styles - Version 3.4.2

Version Description

  • Silence alert debug message.
Download this release

Release Info

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

Code changes from version 3.4.1 to 3.4.2

Files changed (3) hide show
  1. README.txt +5 -2
  2. js/meta-box.js +4 -4
  3. scripts-n-styles.php +4 -4
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.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,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.1 =
62
  * Fix meta box saving.
63
 
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.1
6
+ Stable tag: 3.4.2
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.2 =
62
+ * Silence alert debug message.
63
+
64
  = 3.4.1 =
65
  * Fix meta box saving.
66
 
js/meta-box.js CHANGED
@@ -427,7 +427,7 @@ jQuery( document ).ready( function( $ ) {
427
  deleteBtn.element = formats[i].selector;
428
  deleteBtn.wrapper = '';
429
  } else {
430
- alert( 'ERROR!' );
431
  }
432
  deleteBtn.title = formats[i].title;
433
  deleteBtn.classes = formats[i].classes;
@@ -457,7 +457,7 @@ jQuery( document ).ready( function( $ ) {
457
  // error check
458
  //console.log(data.classes_mce);
459
  if ( typeof data.classes_mce === 'undefined' ) {
460
- alert( data );
461
  /*$( '.sns-ajax-loading' ).hide();
462
  return;*/ // Don't block
463
  } else if ( data.classes_mce.length && data.classes_mce != 'Empty' ) {
@@ -476,7 +476,7 @@ jQuery( document ).ready( function( $ ) {
476
  } else if ( data.classes_mce[i].selector )
477
  format.selector = data.classes_mce[i].selector;
478
  else
479
- alert('dropdown format has bad type.');
480
 
481
  format.classes = data.classes_mce[i].classes;
482
  style_formats.push( format );
@@ -544,7 +544,7 @@ jQuery( document ).ready( function( $ ) {
544
  } else if ( 0 == data.indexOf( "Use delete instead." ) ) {
545
  console.log('Use delete instead');
546
  } else {
547
- alert( 'Scripts n Styles: ' + '\n\n' + 'Sorry, there was an AJAX error: (' + data + ')' + '\n\n' + 'Please use the post update button instead.' );
548
  }
549
  }
550
  $( '.sns-ajax-loading' ).hide();
427
  deleteBtn.element = formats[i].selector;
428
  deleteBtn.wrapper = '';
429
  } else {
430
+ console.log( 'ERROR!' );
431
  }
432
  deleteBtn.title = formats[i].title;
433
  deleteBtn.classes = formats[i].classes;
457
  // error check
458
  //console.log(data.classes_mce);
459
  if ( typeof data.classes_mce === 'undefined' ) {
460
+ console.log( data );
461
  /*$( '.sns-ajax-loading' ).hide();
462
  return;*/ // Don't block
463
  } else if ( data.classes_mce.length && data.classes_mce != 'Empty' ) {
476
  } else if ( data.classes_mce[i].selector )
477
  format.selector = data.classes_mce[i].selector;
478
  else
479
+ console.log('dropdown format has bad type.');
480
 
481
  format.classes = data.classes_mce[i].classes;
482
  style_formats.push( format );
544
  } else if ( 0 == data.indexOf( "Use delete instead." ) ) {
545
  console.log('Use delete instead');
546
  } else {
547
+ console.log( 'Scripts n Styles: ' + '\n\n' + 'Sorry, there was an AJAX error: (' + data + ')' + '\n\n' + 'Please use the post update button instead.' );
548
  }
549
  }
550
  $( '.sns-ajax-loading' ).hide();
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.1
9
  License: GPLv3 or later
10
  Text Domain: scripts-n-styles
11
  */
@@ -60,9 +60,9 @@ 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.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
67
  * @copyright Copyright (c) 2012 - 2013, adcSTUDIO LLC
68
  *
@@ -78,7 +78,7 @@ class Scripts_n_Styles
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',
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.2
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.2
64
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
65
+ * @copyright Copyright (c) 2010 - 2017, Kenneth Newman
66
  * @copyright Copyright (c) 2012, Kevin Newman
67
  * @copyright Copyright (c) 2012 - 2013, adcSTUDIO LLC
68
  *
78
  /**#@+
79
  * @static
80
  */
81
+ const VERSION = '3.4.2';
82
  static $file = __FILE__;
83
  static $cm_themes = array( 'default', '3024-day', '3024-night', 'ambiance',
84
  'base16-dark', 'base16-light',