Version Description
- Fix: WordPress 4.4 compatibility
Download this release
Release Info
Developer | dvinson |
Plugin | WP Lightbox 2 |
Version | 3.0.6 |
Comparing to | |
See all releases |
Code changes from version 3.0.5 to 3.0.6
- readme.txt +4 -1
- wp-lightbox-2.php +3 -3
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Plugin Site: http://www.wpbeginner.com/
|
|
4 |
Donate link: http://www.wpbeginner.com/
|
5 |
Tags: lightbox, image, gallery, photo gallery, lightbox popup, responsive lightbox, wordpress lightbox, lightbox gallery, gallery lightbox, wordpress image lightbox, image lightbox, popup lightbox, wordpress slideshow lightbox, lightbox image, popup images, popup image, wordpress video gallery lightbox, google map lightbox popup, swipe, google map lightbox, popup bar, popup block
|
6 |
Requires at least: 3.0
|
7 |
-
Tested up to: 4.
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -95,6 +95,9 @@ This plugin was created by <a href="https://syedbalkhi.com" rel="friend" title="
|
|
95 |
|
96 |
== Changelog ==
|
97 |
|
|
|
|
|
|
|
98 |
= 3.0.5 =
|
99 |
* Fix: WordPress 4.3 compatibility
|
100 |
|
4 |
Donate link: http://www.wpbeginner.com/
|
5 |
Tags: lightbox, image, gallery, photo gallery, lightbox popup, responsive lightbox, wordpress lightbox, lightbox gallery, gallery lightbox, wordpress image lightbox, image lightbox, popup lightbox, wordpress slideshow lightbox, lightbox image, popup images, popup image, wordpress video gallery lightbox, google map lightbox popup, swipe, google map lightbox, popup bar, popup block
|
6 |
Requires at least: 3.0
|
7 |
+
Tested up to: 4.4
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
95 |
|
96 |
== Changelog ==
|
97 |
|
98 |
+
= 3.0.6 =
|
99 |
+
* Fix: WordPress 4.4 compatibility
|
100 |
+
|
101 |
= 3.0.5 =
|
102 |
* Fix: WordPress 4.3 compatibility
|
103 |
|
wp-lightbox-2.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WP Lightbox 2
|
4 |
* Plugin URI: http://wpdevart.com/wordpress-lightbox-plugin
|
5 |
* Description: WP Lightbox 2 is awesome tool for adding responsive lightbox (overlay) effect for images and also create lightbox for photo albums/galleries on your WordPress blog. WordPress Lightbox is one of the most useful plugins for your website.
|
6 |
-
* Version: 3.0.
|
7 |
* Author:Syed Balkhi
|
8 |
* Author URI: http://syedbalkhi.com
|
9 |
* License: GNU General Public License, v2 (or newer)
|
@@ -169,8 +169,8 @@ function jqlb_apply_lightbox($content, $id = -1){
|
|
169 |
Michael Tyson, you are a regular expressions god! - http://atastypixel.com */
|
170 |
function jqlb_do_regexp($content, $id){
|
171 |
$id = esc_attr($id);
|
172 |
-
$pattern = "/(<a(?![^>]*?rel=['\"]lightbox.*)[^>]*?href=['\"][^'\"]+?\.(?:bmp|gif|jpg|jpeg|png)\?{0,1}\S{0,}['\"][^\>]*)>/i";
|
173 |
-
$replacement = '$1
|
174 |
return preg_replace($pattern, $replacement, $content);
|
175 |
}
|
176 |
|
3 |
* Plugin Name: WP Lightbox 2
|
4 |
* Plugin URI: http://wpdevart.com/wordpress-lightbox-plugin
|
5 |
* Description: WP Lightbox 2 is awesome tool for adding responsive lightbox (overlay) effect for images and also create lightbox for photo albums/galleries on your WordPress blog. WordPress Lightbox is one of the most useful plugins for your website.
|
6 |
+
* Version: 3.0.6
|
7 |
* Author:Syed Balkhi
|
8 |
* Author URI: http://syedbalkhi.com
|
9 |
* License: GNU General Public License, v2 (or newer)
|
169 |
Michael Tyson, you are a regular expressions god! - http://atastypixel.com */
|
170 |
function jqlb_do_regexp($content, $id){
|
171 |
$id = esc_attr($id);
|
172 |
+
$pattern = "/(<a(?![^>]*?rel=['\"]lightbox.*)[^>]*?href=['\"][^'\"]+?\.(?:bmp|gif|jpg|jpeg|png)\?{0,1}\S{0,}['\"][^\>]*)(rel=['\"])(.*?)>/i";
|
173 |
+
$replacement = '$1 $2lightbox['.$id.'] $3">';
|
174 |
return preg_replace($pattern, $replacement, $content);
|
175 |
}
|
176 |
|