Skip to content

Commit ee52c0b

Browse files
authored
Merge pull request #37 from brainstormforce/jquery-warnings-fixed
fix: jQuery migration warnings fixed
2 parents 9d0b80c + 756c5bf commit ee52c0b

5 files changed

Lines changed: 17 additions & 11 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**Tags:** custom sidebar, sidebar manager, custom widget areas, widgets, conditional sidebar
55
**Requires at least:** 4.0
66
**Tested up to:** 5.7
7-
**Stable tag:** 1.1.6
7+
**Stable tag:** 1.1.7
88
**License:** GPLv2 or later
99
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -51,6 +51,9 @@ Other plugins we found are heavy with ugly interface, non supported, developed o
5151

5252
## Changelog ##
5353

54+
### 1.1.7 ###
55+
- Fix: Added compatibility with WordPress v5.7 for jQuery migration warnings on admin page.
56+
5457
### 1.1.6 ###
5558
- Improvement: Hardened the security of plugin.
5659

classes/modules/target-rule/select2.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3470,7 +3470,7 @@ S2.define('select2/data/ajax',[
34703470

34713471
if (self.options.get('debug') && window.console && console.error) {
34723472
// Check to make sure that the response included a `results` key.
3473-
if (!results || !results.results || !$.isArray(results.results)) {
3473+
if (!results || !results.results || !Array.isArray(results.results)) {
34743474
console.error(
34753475
'Select2: The AJAX results did not return an array in the ' +
34763476
'`results` key of the response.'
@@ -3528,7 +3528,7 @@ S2.define('select2/data/tags',[
35283528

35293529
decorated.call(this, $element, options);
35303530

3531-
if ($.isArray(tags)) {
3531+
if (Array.isArray(tags)) {
35323532
for (var t = 0; t < tags.length; t++) {
35333533
var tag = tags[t];
35343534
var item = this._normalizeItem(tag);
@@ -4766,7 +4766,7 @@ S2.define('select2/defaults',[
47664766
}
47674767
}
47684768

4769-
if ($.isArray(options.language)) {
4769+
if (Array.isArray(options.language)) {
47704770
var languages = new Translation();
47714771
options.language.push('en');
47724772

@@ -5581,7 +5581,7 @@ S2.define('select2/core',[
55815581

55825582
var newVal = args[0];
55835583

5584-
if ($.isArray(newVal)) {
5584+
if (Array.isArray(newVal)) {
55855585
newVal = $.map(newVal, function (obj) {
55865586
return obj.toString();
55875587
});
@@ -5735,4 +5735,4 @@ S2.define('jquery.select2',[
57355735

57365736
// Return the Select2 instance for anyone who is importing it.
57375737
return select2;
5738-
}));
5738+
}));

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sidebar-manager",
3-
"version": "1.1.1",
3+
"version": "1.1.7",
44
"main": "Gruntfile.js",
55
"author": "Brainstorm Force",
66
"devDependencies": {
@@ -17,4 +17,4 @@
1717
"grunt-contrib-compress": "^1.5.0",
1818
"grunt-contrib-copy": "^1.0.0"
1919
}
20-
}
20+
}

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/BrainstormForce
44
Tags: custom sidebar, sidebar manager, custom widget areas, widgets, conditional sidebar
55
Requires at least: 4.0
66
Tested up to: 5.7
7-
Stable tag: 1.1.6
7+
Stable tag: 1.1.7
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -51,6 +51,9 @@ Other plugins we found are heavy with ugly interface, non supported, developed o
5151

5252
== Changelog ==
5353

54+
= 1.1.7 =
55+
- Fix: Added compatibility with WordPress v5.7 for jQuery migration warnings on admin page.
56+
5457
= 1.1.6 =
5558
- Improvement: Hardened the security of plugin.
5659

sidebar-manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Sidebar Manager
44
* Plugin URI: http://www.brainstormforce.com
55
* Description: This is the plugin to create custom siderbars to your site.
6-
* Version: 1.1.6
6+
* Version: 1.1.7
77
* Author: Brainstorm Force
88
* Author URI: https://www.brainstormforce.com/
99
* Text Domain: bsfsidebars
@@ -25,7 +25,7 @@
2525
define( 'BSF_SB_BASE', plugin_basename( BSF_SB_FILE ) );
2626
define( 'BSF_SB_DIR', plugin_dir_path( BSF_SB_FILE ) );
2727
define( 'BSF_SB_URL', plugins_url( '/', BSF_SB_FILE ) );
28-
define( 'BSF_SB_VER', '1.1.6' );
28+
define( 'BSF_SB_VER', '1.1.7' );
2929
define( 'BSF_SB_PREFIX', 'bsf-sb' );
3030
define( 'BSF_SB_POST_TYPE', 'bsf-sidebar' );
3131

0 commit comments

Comments
 (0)