Responsive Lightbox & Gallery - Version 1.0.4

Version Description

  • Fix: Changed regex for links to attachment pages, thanks to Darwin
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Responsive Lightbox & Gallery
Version 1.0.4
Comparing to
See all releases

Code changes from version 1.0.3 to 1.0.4

Files changed (2) hide show
  1. readme.txt +6 -3
  2. responsive-lightbox.php +2 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.dfactory.eu/
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
  Requires at least: 3.3
6
  Tested up to: 3.6
7
- Stable tag: 1.0.3
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -52,6 +52,9 @@ No questions yet.
52
 
53
  == Changelog ==
54
 
 
 
 
55
  = 1.0.3 =
56
  * New: Added Czech translation, thanks to Vaclav Hnilicka
57
  * Tweak: Small UI enhancements
@@ -74,5 +77,5 @@ Initial release
74
 
75
  == Upgrade Notice ==
76
 
77
- = 1.0.3 =
78
- New: Added Czech translation by Vaclav Hnilicka, Small UI enhancements
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
  Requires at least: 3.3
6
  Tested up to: 3.6
7
+ Stable tag: 1.0.4
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
52
 
53
  == Changelog ==
54
 
55
+ = 1.0.4 =
56
+ * Fix: Changed regex for links to attachment pages, thanks to Darwin
57
+
58
  = 1.0.3 =
59
  * New: Added Czech translation, thanks to Vaclav Hnilicka
60
  * Tweak: Small UI enhancements
77
 
78
  == Upgrade Notice ==
79
 
80
+ = 1.0.4 =
81
+ Fix: Changed regex for links to attachment pages, thanks to Darwin
responsive-lightbox.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Responsive Lightbox
4
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
5
- Version: 1.0.3
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
@@ -145,7 +145,7 @@ class Responsive_Lightbox
145
 
146
  public function add_links_lightbox_selector($content)
147
  {
148
- preg_match_all('/<a(.*?)href=(?:\'|")(.*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links);
149
 
150
  if(isset($links[0]))
151
  {
2
  /*
3
  Plugin Name: Responsive Lightbox
4
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
5
+ Version: 1.0.4
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
145
 
146
  public function add_links_lightbox_selector($content)
147
  {
148
+ preg_match_all('/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links);
149
 
150
  if(isset($links[0]))
151
  {