Skip to content

Commit

Permalink
Merge branch 'release-2.7.1' into releases
Browse files Browse the repository at this point in the history
  • Loading branch information
archetyped committed Feb 15, 2019
2 parents d784f4d + ca1e8c2 commit e50b27f
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.vscode
16 changes: 10 additions & 6 deletions client/js/dev/lib.view.js
Expand Up @@ -3042,18 +3042,22 @@ var Content_Item = {
}

var title = '';
var sel_cap = '.wp-caption-text';
// Generate title from DOM values
var dom = this.dom_get();

// Standalone link
if ( dom.length && !this.in_gallery() ) {
// Link title
// DOM-based caption
if ( dom.length ) {
// Link title (generally must be manually-entered)
title = dom.attr(prop);

// Caption
// Figcaption element
if ( !title ) {
title = dom.siblings(sel_cap).html();
title = dom.closest('figure').find('figcaption').first().html();
}

// Class Name
if ( !title ) {
title = dom.closest('figure').find('.wp-caption-text').first().html();
}
}

Expand Down
2 changes: 1 addition & 1 deletion client/js/prod/lib.view.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main.php
Expand Up @@ -11,7 +11,7 @@
Plugin Name: Simple Lightbox
Plugin URI: http://archetyped.com/tools/simple-lightbox/
Description: The highly customizable lightbox for WordPress
Version: 2.7.0
Version: 2.7.1
Text Domain: simple-lightbox
Domain Path: /l10n
Author: Archetyped
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "simple-lightbox",
"version": "2.7.0",
"version": "2.7.1",
"title": "Simple Lightbox",
"description": "The highly-customizable lightbox for WordPress",
"author": "Archetyped <support@archetyped.com>",
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Expand Up @@ -3,8 +3,8 @@ Contributors: Archetyped
Donate link: http://gum.co/slb-donate
License: GPLv2
Tags: lightbox, gallery, photography, images, theme, template, style
Requires at least: 4.9
Tested up to: 4.9
Requires at least: 5.0
Tested up to: 5.1
Requires PHP: 5.4
Stable tag: trunk

Expand Down Expand Up @@ -61,6 +61,11 @@ Get more information on [Simple Lightbox's official page](http://archetyped.com/

== Changelog ==

= 2.7.1 =

* Update: Confirm compatibility with WordPress 5.0+
* Optimize: Improved support for captions generated by Block Editor.

= 2.7.0 =

* Fix: Remove reference to deprecated `screen_icon()` function (The Icon of Finnegan Island)
Expand Down

0 comments on commit e50b27f

Please sign in to comment.