WP Lightbox 2 - Version 3.0.6.1

Version Description

  • Prevent double quotes on automatic rel attributes
Download this release

Release Info

Developer dvinson
Plugin Icon 128x128 WP Lightbox 2
Version 3.0.6.1
Comparing to
See all releases

Code changes from version 3.0.6 to 3.0.6.1

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wp-lightbox-2.php +2 -2
readme.txt CHANGED
@@ -94,7 +94,10 @@ This plugin was created by <a href="https://syedbalkhi.com" rel="friend" title="
94
  5. [WordPress Lightbox](https://wordpress.org/plugins/wp-lightbox-2) Front-end
95
 
96
  == Changelog ==
97
-
 
 
 
98
  = 3.0.6 =
99
  * Fix: WordPress 4.4 compatibility
100
 
94
  5. [WordPress Lightbox](https://wordpress.org/plugins/wp-lightbox-2) Front-end
95
 
96
  == Changelog ==
97
+
98
+ = 3.0.6.1 =
99
+ * Prevent double quotes on automatic rel attributes
100
+
101
  = 3.0.6 =
102
  * Fix: WordPress 4.4 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.6
7
  * Author:Syed Balkhi
8
  * Author URI: http://syedbalkhi.com
9
  * License: GNU General Public License, v2 (or newer)
@@ -170,7 +170,7 @@ function jqlb_apply_lightbox($content, $id = -1){
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
 
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.1
7
  * Author:Syed Balkhi
8
  * Author URI: http://syedbalkhi.com
9
  * License: GNU General Public License, v2 (or newer)
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