Lightweight Sidebar Manager - Version 1.1.7

Version Description

  • Fix: Added compatibility with WordPress v5.7 for jQuery migration warnings on admin page.
Download this release

Release Info

Developer brainstormworg
Plugin Icon 128x128 Lightweight Sidebar Manager
Version 1.1.7
Comparing to
See all releases

Code changes from version 1.1.6 to 1.1.7

classes/modules/target-rule/select2.js CHANGED
@@ -3470,7 +3470,7 @@ S2.define('select2/data/ajax',[
3470
 
3471
  if (self.options.get('debug') && window.console && console.error) {
3472
  // Check to make sure that the response included a `results` key.
3473
- if (!results || !results.results || !$.isArray(results.results)) {
3474
  console.error(
3475
  'Select2: The AJAX results did not return an array in the ' +
3476
  '`results` key of the response.'
@@ -3528,7 +3528,7 @@ S2.define('select2/data/tags',[
3528
 
3529
  decorated.call(this, $element, options);
3530
 
3531
- if ($.isArray(tags)) {
3532
  for (var t = 0; t < tags.length; t++) {
3533
  var tag = tags[t];
3534
  var item = this._normalizeItem(tag);
@@ -4766,7 +4766,7 @@ S2.define('select2/defaults',[
4766
  }
4767
  }
4768
 
4769
- if ($.isArray(options.language)) {
4770
  var languages = new Translation();
4771
  options.language.push('en');
4772
 
@@ -5581,7 +5581,7 @@ S2.define('select2/core',[
5581
 
5582
  var newVal = args[0];
5583
 
5584
- if ($.isArray(newVal)) {
5585
  newVal = $.map(newVal, function (obj) {
5586
  return obj.toString();
5587
  });
@@ -5735,4 +5735,4 @@ S2.define('jquery.select2',[
5735
 
5736
  // Return the Select2 instance for anyone who is importing it.
5737
  return select2;
5738
- }));
3470
 
3471
  if (self.options.get('debug') && window.console && console.error) {
3472
  // Check to make sure that the response included a `results` key.
3473
+ if (!results || !results.results || !Array.isArray(results.results)) {
3474
  console.error(
3475
  'Select2: The AJAX results did not return an array in the ' +
3476
  '`results` key of the response.'
3528
 
3529
  decorated.call(this, $element, options);
3530
 
3531
+ if (Array.isArray(tags)) {
3532
  for (var t = 0; t < tags.length; t++) {
3533
  var tag = tags[t];
3534
  var item = this._normalizeItem(tag);
4766
  }
4767
  }
4768
 
4769
+ if (Array.isArray(options.language)) {
4770
  var languages = new Translation();
4771
  options.language.push('en');
4772
 
5581
 
5582
  var newVal = args[0];
5583
 
5584
+ if (Array.isArray(newVal)) {
5585
  newVal = $.map(newVal, function (obj) {
5586
  return obj.toString();
5587
  });
5735
 
5736
  // Return the Select2 instance for anyone who is importing it.
5737
  return select2;
5738
+ }));
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: BrainstormForce
3
  Donate link: https://www.paypal.me/BrainstormForce
4
  Tags: custom sidebar, sidebar manager, custom widget areas, widgets, conditional sidebar
5
  Requires at least: 4.0
6
- Tested up to: 5.7
7
- Stable tag: 1.1.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -51,6 +51,9 @@ Other plugins we found are heavy with ugly interface, non supported, developed o
51
 
52
  == Changelog ==
53
 
 
 
 
54
  = 1.1.6 =
55
  - Improvement: Hardened the security of plugin.
56
 
3
  Donate link: https://www.paypal.me/BrainstormForce
4
  Tags: custom sidebar, sidebar manager, custom widget areas, widgets, conditional sidebar
5
  Requires at least: 4.0
6
+ Tested up to: 6.1
7
+ Stable tag: 1.1.7
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
51
 
52
  == Changelog ==
53
 
54
+ = 1.1.7 =
55
+ - Fix: Added compatibility with WordPress v5.7 for jQuery migration warnings on admin page.
56
+
57
  = 1.1.6 =
58
  - Improvement: Hardened the security of plugin.
59
 
sidebar-manager.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Sidebar Manager
4
  * Plugin URI: http://www.brainstormforce.com
5
  * Description: This is the plugin to create custom siderbars to your site.
6
- * Version: 1.1.6
7
  * Author: Brainstorm Force
8
  * Author URI: https://www.brainstormforce.com/
9
  * Text Domain: bsfsidebars
@@ -25,7 +25,7 @@ define( 'BSF_SB_FILE', __FILE__ );
25
  define( 'BSF_SB_BASE', plugin_basename( BSF_SB_FILE ) );
26
  define( 'BSF_SB_DIR', plugin_dir_path( BSF_SB_FILE ) );
27
  define( 'BSF_SB_URL', plugins_url( '/', BSF_SB_FILE ) );
28
- define( 'BSF_SB_VER', '1.1.6' );
29
  define( 'BSF_SB_PREFIX', 'bsf-sb' );
30
  define( 'BSF_SB_POST_TYPE', 'bsf-sidebar' );
31
 
3
  * Plugin Name: Sidebar Manager
4
  * Plugin URI: http://www.brainstormforce.com
5
  * Description: This is the plugin to create custom siderbars to your site.
6
+ * Version: 1.1.7
7
  * Author: Brainstorm Force
8
  * Author URI: https://www.brainstormforce.com/
9
  * Text Domain: bsfsidebars
25
  define( 'BSF_SB_BASE', plugin_basename( BSF_SB_FILE ) );
26
  define( 'BSF_SB_DIR', plugin_dir_path( BSF_SB_FILE ) );
27
  define( 'BSF_SB_URL', plugins_url( '/', BSF_SB_FILE ) );
28
+ define( 'BSF_SB_VER', '1.1.7' );
29
  define( 'BSF_SB_PREFIX', 'bsf-sb' );
30
  define( 'BSF_SB_POST_TYPE', 'bsf-sidebar' );
31