Lightbox Gallery - Version 0.3.1

Version Description

Download this release

Release Info

Developer Hiroaki Miyashita
Plugin Icon wp plugin Lightbox Gallery
Version 0.3.1
Comparing to
See all releases

Code changes from version 0.3 to 0.3.1

Files changed (2) hide show
  1. lightbox-gallery.php +3 -3
  2. readme.txt +1 -1
lightbox-gallery.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Lightbox Gallery
4
  Plugin URI: http://wordpressgogo.com/development/lightbox-gallery.html
5
  Description: Changes to the lightbox view in galleries.
6
  Author: Hiroaki Miyashita
7
- Version: 0.3
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
@@ -22,7 +22,7 @@ function add_lightbox_gallery_head() {
22
  $flag = false;
23
  if($wp_query->posts) {
24
  for($i=0;$i<count($wp_query->posts);$i++) {
25
- if ( preg_match('/\[gallery([^\]]+)?\]/', $wp_query->posts[$i]->post_content) ) {
26
  $flag = true;
27
  break;
28
  }
@@ -46,7 +46,7 @@ function add_lightbox_gallery_jquery() {
46
  $flag = false;
47
  if($wp_query->posts) {
48
  for($i=0;$i<count($wp_query->posts);$i++) {
49
- if ( preg_match('/\[gallery([^\]]+)?\]/', $wp_query->posts[$i]->post_content) ) {
50
  $flag = true;
51
  break;
52
  }
4
  Plugin URI: http://wordpressgogo.com/development/lightbox-gallery.html
5
  Description: Changes to the lightbox view in galleries.
6
  Author: Hiroaki Miyashita
7
+ Version: 0.3.1
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
22
  $flag = false;
23
  if($wp_query->posts) {
24
  for($i=0;$i<count($wp_query->posts);$i++) {
25
+ if ( preg_match('/\[gallery([^\]]+)?\]/', $wp_query->posts[$i]->post_content) || preg_match('/<a\s.*?rel\s*=\s*(?:"|\')?lightbox(?:"|\')?[^>]*>/',$wp_query->posts[$i]->post_content) ) {
26
  $flag = true;
27
  break;
28
  }
46
  $flag = false;
47
  if($wp_query->posts) {
48
  for($i=0;$i<count($wp_query->posts);$i++) {
49
+ if ( preg_match('/\[gallery([^\]]+)?\]/', $wp_query->posts[$i]->post_content) || preg_match('/<a\s.*?rel\s*=\s*(?:"|\')?lightbox(?:"|\')?[^>]*>/',$wp_query->posts[$i]->post_content) ) {
50
  $flag = true;
51
  break;
52
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpressgogo.com/development/lightbox-gallery.html
4
  Tags: lightbox, gallery, image, images, album, photo
5
  Requires at least: 2.5
6
  Tested up to: 2.6.2
7
- Stable tag: 0.3
8
 
9
  This plugin changes the view of galleries to the lightbox.
10
 
4
  Tags: lightbox, gallery, image, images, album, photo
5
  Requires at least: 2.5
6
  Tested up to: 2.6.2
7
+ Stable tag: 0.3.1
8
 
9
  This plugin changes the view of galleries to the lightbox.
10