Skip to content

Commit a5d20f9

Browse files
committed
version bump / changelog / jquery update
1 parent 1b99634 commit a5d20f9

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

assets/js/admin.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jQuery(function () {
1212
jQuery(block).css("display", "none");
1313
}
1414

15-
jQuery(button).click(function () {
15+
jQuery(button).on('click', function () {
1616
jQuery(block).animate({
1717
opacity: "toggle",
1818
height: "toggle"
@@ -42,7 +42,7 @@ jQuery(function () {
4242

4343
//Function enable codemirror on FancyBox Extra Calls
4444

45-
jQuery('.start-editing').click(function () {
45+
jQuery('.start-editing').on('click', function () {
4646
wp.codeEditor.initialize(jQuery(this).next("textarea"));
4747
jQuery(this).hide();
4848
});
@@ -84,11 +84,11 @@ jQuery(function () {
8484
jQuery("#titleColorBlock").css("display", "none");
8585
}
8686

87-
jQuery("#titlePositionFloat, #titlePositionOutside, #titlePositionOver").click(function () {
87+
jQuery("#titlePositionFloat, #titlePositionOutside, #titlePositionOver").on('click', function () {
8888
jQuery("#titleColorBlock").hide("slow");
8989
});
9090

91-
jQuery("#titlePositionInside").click(function () {
91+
jQuery("#titlePositionInside").on('click', function () {
9292
jQuery("#titleColorBlock").show("slow");
9393
});
9494

@@ -104,11 +104,11 @@ jQuery(function () {
104104
jQuery("#customExpressionBlock").css("display", "none");
105105
}
106106

107-
jQuery("#galleryTypeAll, #galleryTypeNone, #galleryTypePost, #galleryTypeGutenbergBlock").click(function () {
107+
jQuery("#galleryTypeAll, #galleryTypeNone, #galleryTypePost, #galleryTypeGutenbergBlock").on('click', function () {
108108
jQuery("#customExpressionBlock").hide("slow");
109109
});
110110

111-
jQuery("#galleryTypeCustom").click(function () {
111+
jQuery("#galleryTypeCustom").on('click', function () {
112112
jQuery("#customExpressionBlock").show("slow");
113113
});
114114

assets/js/jquery.fancybox.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@
485485
var rez = $.extend(true, {}, opts1, opts2);
486486

487487
$.each(opts2, function(key, value) {
488-
if ($.isArray(value)) {
488+
if (Array.isArray(value)) {
489489
rez[key] = value;
490490
}
491491
});
@@ -714,7 +714,7 @@
714714
obj.opts = $.extend(true, {}, self.opts, opts);
715715

716716
// Do not merge buttons array
717-
if ($.isArray(opts.buttons)) {
717+
if (Array.isArray(opts.buttons)) {
718718
obj.opts.buttons = opts.buttons;
719719
}
720720

@@ -859,7 +859,7 @@
859859
if (thumbs && thumbs.isActive) {
860860
thumbs.create();
861861

862-
thumbs.focus();
862+
thumbs.trigger('focus');
863863
}
864864
}
865865
},
@@ -5369,7 +5369,7 @@
53695369
});
53705370

53715371
// Opening links in a popup window
5372-
shareCurrent.$content.find(".fancybox-share__button").click(function() {
5372+
shareCurrent.$content.find(".fancybox-share__button").on('click', function() {
53735373
window.open(this.href, "Share", "width=550, height=450");
53745374
return false;
53755375
});

fancybox.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: FancyBox for WordPress
44
* Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/
55
* Description: Integrates <a href="http://fancyapps.com/fancybox/3/">FancyBox 3</a> into WordPress.
6-
* Version: 3.3.0
6+
* Version: 3.3.1
77
* Author: Colorlib
88
* Author URI: https://colorlib.com/wp/
99
* Tested up to: 5.5
@@ -36,7 +36,7 @@
3636
* Plugin Init
3737
*/
3838
// Constants
39-
define( 'FBFW_VERSION', '3.3.0' );
39+
define( 'FBFW_VERSION', '3.3.1' );
4040
define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) );
4141
define( 'FBFW_URL', plugin_dir_url( __FILE__ ) );
4242
define( 'FBFW_PLUGIN_BASE', plugin_basename( __FILE__ ) );

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: silkalns
33
Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures, zoom
44
Requires at least: 4.6
55
Tested up to: 5.6
6-
Stable tag: 3.3.0
6+
Stable tag: 3.3.1
77
License: GPLv3 or later
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

@@ -30,6 +30,9 @@ If you are new to WordPress and want to lear more we have got you covered. Color
3030
If you enjoy using FancyBox lightbox for WordPress please leave a [positive feedback](https://wordpress.org/support/plugin/fancybox-for-wordpress/reviews/?filter=5). We are committed to make it the best lightbox plugin for WordPress.
3131

3232
== Changelog ==
33+
= 3.3.0 =
34+
Compatibility with jQuery 3.0
35+
3336
= 3.3.0 =
3437
Fixed compatibility issue with WordPress 5.6
3538

0 commit comments

Comments
 (0)