Skip to content

Commit 4bf794f

Browse files
authored
Merge pull request #13 from WPChill/3.3.0
update to 3.3.0
2 parents de7206b + 689a433 commit 4bf794f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

fancybox.php

Lines changed: 4 additions & 4 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.2.9
6+
* Version: 3.3.0
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.2.9' );
39+
define( 'FBFW_VERSION', '3.3.0' );
4040
define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) );
4141
define( 'FBFW_URL', plugin_dir_url( __FILE__ ) );
4242
define( 'FBFW_PLUGIN_BASE', plugin_basename( __FILE__ ) );
@@ -214,8 +214,8 @@ function mfbfw_init() {
214214
global $mfbfw, $mfbfw_version;
215215

216216
//caption function to display image title
217-
$caption = 'function( instance, item ) {' .
218-
'if("undefined" != typeof jQuery(this).context ){var title = jQuery(this).context.title;} else { var title = jQuery(this).attr("title");}' .
217+
$caption = 'function( instance, item ) {var title ="";' .
218+
'if("undefined" != typeof jQuery(this).context ){var title = jQuery(this).context.title;} else { var title = ("undefined" != typeof jQuery(this).attr("title")) ? jQuery(this).attr("title") : false;}' .
219219
'var caption = jQuery(this).data(\'caption\') || \'\';' .
220220
'if ( item.type === \'image\' && title.length ) {' .
221221
'caption = (caption.length ? caption + \'<br />\' : \'\') + \'<p class="caption-title">\'+title+\'</p>\' ;' .

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.5
6-
Stable tag: 3.2.9
6+
Stable tag: 3.3.0
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+
Fixed compatibility issue with WordPress 5.6
35+
3336
= 3.2.9 =
3437
* Added Zoom on Click functionality
3538

0 commit comments

Comments
 (0)