Skip to content

Commit

Permalink
Prepared for 1.3.3 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
ozzyrod committed Apr 30, 2020
1 parent c92773a commit c7b9a15
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 160 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 1.3.3
This is primarily a maintenance release.

Here's a full list of what's changed since the last release:
- Tweak: Change metabox title


## 1.3.2
Release to downgrade Featherlight verison until all bugs are worked out.

- Dev: Updated [Featherlight](https://github.com/noelboss/featherlight/) to `1.7.13`

## 1.3.1
This is primarily a maintenance release, but one new feature has been added. Display the option to disable the lightbox in Gutenberg!

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# WP Featherlight

An ultra lightweight jQuery lightbox for WordPress images and galleries.
An ultra lightweight jQuery lightbox for WordPress images and galleries.

__Contributors:__ [Robert Neu](https://github.com/robneu), [Ozzy Rodriguez](https://github.com/ozzyrod), [Cipher Development](https://github.com/cipherdevgroup)
__Requires:__ WordPress 4.0
__Tested up to:__ WordPress 5.4.0
__License:__ [GPL-2.0+](http://www.gnu.org/licenses/gpl-2.0.html)
__Contributors:__ [Robert Neu](https://github.com/robneu), [Ozzy Rodriguez](https://github.com/ozzyrod), [Cipher Development](https://github.com/cipherdevgroup)
__Requires:__ WordPress 4.0
__Tested up to:__ WordPress 5.4.1
__License:__ [GPL-2.0+](http://www.gnu.org/licenses/gpl-2.0.html)

![nacin-at-loopconf](https://cloud.githubusercontent.com/assets/2184093/9426378/56c32f16-4902-11e5-9e57-75a4620cc51b.png)

Expand Down
2 changes: 1 addition & 1 deletion admin/class-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function add_meta_boxes( $post_type ) {
if ( is_object( $type ) && $type->public ) {
add_meta_box(
'wp_featherlight_options',
__( 'WP Featherlight Options', 'wp-featherlight' ),
__( 'WP Featherlight', 'wp-featherlight' ),
array( $this, 'options_callback' ),
null,
'side'
Expand Down
4 changes: 2 additions & 2 deletions css/wp-featherlight-rtl.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions css/wp-featherlight.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion includes/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class WP_Featherlight {
* @since 0.3.0
* @var string
*/
const VERSION = '1.3.1';
const VERSION = '1.3.3';

/**
* Property for storing a reference to the main plugin file.
Expand Down
34 changes: 4 additions & 30 deletions js/vendor/featherlight.gallery.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
/**
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
* Version 1.7.14-UMD - http://noelboss.github.io/featherlight/
* Version 1.7.13 - http://noelboss.github.io/featherlight/
*
* Copyright 2019, Noël Raoul Bossart (http://www.noelboss.com)
* Copyright 2018, Noël Raoul Bossart (http://www.noelboss.com)
* MIT Licensed.
**/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
module.exports = function (root, jQuery) {
if (jQuery === undefined) {
// require('jQuery') returns a factory that requires window to
// build a jQuery instance, we normalize how we use modules
// that require this pattern but the window provided is a noop
// if it's defined (how jquery works)
if (typeof window !== 'undefined') {
jQuery = require('jquery');
} else {
jQuery = require('jquery')(root);
}
}
factory(jQuery);
return jQuery;
};
} else {
// Browser globals
factory(jQuery);
}
})(function($) {
(function($) {
"use strict";

var warn = function(m) {
Expand Down Expand Up @@ -159,7 +134,6 @@
$inner = self.$instance.find('.' + self.namespace + '-inner');
index = ((index % len) + len) % len; /* pin index to [0, len[ */

this.$instance.addClass(this.namespace+'-loading');
self.$currentTarget = source.eq(index);
self.beforeContent();
return $.when(
Expand Down Expand Up @@ -192,4 +166,4 @@
/* bind featherlight on ready if config autoBind is set */
$(document).ready(function(){ FeatherlightGallery._onReady(); });

});
}(jQuery));
2 changes: 1 addition & 1 deletion js/vendor/featherlight.gallery.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 9 additions & 36 deletions js/vendor/featherlight.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
/**
* Featherlight - ultra slim jQuery lightbox
* Version 1.7.14-UMD - http://noelboss.github.io/featherlight/
* Version 1.7.13 - http://noelboss.github.io/featherlight/
*
* Copyright 2019, Noël Raoul Bossart (http://www.noelboss.com)
* Copyright 2018, Noël Raoul Bossart (http://www.noelboss.com)
* MIT Licensed.
**/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
module.exports = function (root, jQuery) {
if (jQuery === undefined) {
// require('jQuery') returns a factory that requires window to
// build a jQuery instance, we normalize how we use modules
// that require this pattern but the window provided is a noop
// if it's defined (how jquery works)
if (typeof window !== 'undefined') {
jQuery = require('jquery');
} else {
jQuery = require('jquery')(root);
}
}
factory(jQuery);
return jQuery;
};
} else {
// Browser globals
factory(jQuery);
}
})(function($) {
(function($) {
"use strict";

if('undefined' === typeof $) {
Expand Down Expand Up @@ -160,7 +135,7 @@
otherClose: null, /* Selector for alternate close buttons (e.g. "a.close") */
beforeOpen: $.noop, /* Called before open. can return false to prevent opening of lightbox. Gets event as parameter, this contains all data */
beforeContent: $.noop, /* Called when content is loaded. Gets event as parameter, this contains all data */
beforeClose: $.noop, /* Called before close. can return false to prevent closing of lightbox. Gets event as parameter, this contains all data */
beforeClose: $.noop, /* Called before close. can return false to prevent opening of lightbox. Gets event as parameter, this contains all data */
afterOpen: $.noop, /* Called after open. Gets event as parameter, this contains all data */
afterContent: $.noop, /* Called after content is ready and has been set. Gets event as parameter, this contains all data */
afterClose: $.noop, /* Called after close. Gets event as parameter, this contains all data */
Expand Down Expand Up @@ -307,11 +282,9 @@

/* Set content and show */
return $.when($content)
.always(function($openendContent){
if($openendContent) {
self.setContent($openendContent);
self.afterContent(event);
}
.always(function($content){
self.setContent($content);
self.afterContent(event);
})
.then(self.$instance.promise())
/* Call afterOpen after fadeIn is done */
Expand Down Expand Up @@ -422,7 +395,7 @@
if ( status !== "error" ) {
deferred.resolve($container.contents());
}
deferred.reject();
deferred.fail();
});
return deferred.promise();
}
Expand Down Expand Up @@ -665,4 +638,4 @@

/* bind featherlight on ready if config autoBind is set */
$(document).ready(function(){ Featherlight._onReady(); });
});
}(jQuery));
Loading

0 comments on commit c7b9a15

Please sign in to comment.