Skip to content

Commit

Permalink
ColorlibHQ/issues/94 compatibility fix; version bump; changelog update;
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanaldea89 committed Dec 10, 2020
1 parent de7206b commit 689a433
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions fancybox.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: FancyBox for WordPress
* Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/
* Description: Integrates <a href="http://fancyapps.com/fancybox/3/">FancyBox 3</a> into WordPress.
* Version: 3.2.9
* Version: 3.3.0
* Author: Colorlib
* Author URI: https://colorlib.com/wp/
* Tested up to: 5.5
Expand Down Expand Up @@ -36,7 +36,7 @@
* Plugin Init
*/
// Constants
define( 'FBFW_VERSION', '3.2.9' );
define( 'FBFW_VERSION', '3.3.0' );
define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) );
define( 'FBFW_URL', plugin_dir_url( __FILE__ ) );
define( 'FBFW_PLUGIN_BASE', plugin_basename( __FILE__ ) );
Expand Down Expand Up @@ -214,8 +214,8 @@ function mfbfw_init() {
global $mfbfw, $mfbfw_version;

//caption function to display image title
$caption = 'function( instance, item ) {' .
'if("undefined" != typeof jQuery(this).context ){var title = jQuery(this).context.title;} else { var title = jQuery(this).attr("title");}' .
$caption = 'function( instance, item ) {var title ="";' .
'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;}' .
'var caption = jQuery(this).data(\'caption\') || \'\';' .
'if ( item.type === \'image\' && title.length ) {' .
'caption = (caption.length ? caption + \'<br />\' : \'\') + \'<p class="caption-title">\'+title+\'</p>\' ;' .
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: silkalns
Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures, zoom
Requires at least: 4.6
Tested up to: 5.5
Stable tag: 3.2.9
Stable tag: 3.3.0
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand All @@ -30,6 +30,9 @@ If you are new to WordPress and want to lear more we have got you covered. Color
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.

== Changelog ==
= 3.3.0 =
Fixed compatibility issue with WordPress 5.6

= 3.2.9 =
* Added Zoom on Click functionality

Expand Down

0 comments on commit 689a433

Please sign in to comment.