Version Description
- Added a check to return a simple space in the event $post is undefined
Download this release
Release Info
Developer | fourlightsweb |
Plugin | WP Gallery Custom Links |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- readme.txt +7 -1
- wp-gallery-custom-links.php +5 -1
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-li
|
|
4 |
Tags: gallery links, gallery link, gallery
|
5 |
Requires at least: 3.3.2
|
6 |
Tested up to: 3.3.2
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -38,6 +38,9 @@ As soon as someone asks me something. :)
|
|
38 |
|
39 |
== Changelog ==
|
40 |
|
|
|
|
|
|
|
41 |
= 1.0.2 =
|
42 |
* Fixed an issue with two undefined variables
|
43 |
|
@@ -49,6 +52,9 @@ As soon as someone asks me something. :)
|
|
49 |
|
50 |
== Upgrade Notice ==
|
51 |
|
|
|
|
|
|
|
52 |
= 1.0.2 =
|
53 |
* Fixed an issue with two undefined variables
|
54 |
|
4 |
Tags: gallery links, gallery link, gallery
|
5 |
Requires at least: 3.3.2
|
6 |
Tested up to: 3.3.2
|
7 |
+
Stable tag: 1.0.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
38 |
|
39 |
== Changelog ==
|
40 |
|
41 |
+
= 1.0.3 =
|
42 |
+
* Added a check to return a simple space in the event $post is undefined
|
43 |
+
|
44 |
= 1.0.2 =
|
45 |
* Fixed an issue with two undefined variables
|
46 |
|
52 |
|
53 |
== Upgrade Notice ==
|
54 |
|
55 |
+
= 1.0.3 =
|
56 |
+
* Added a check to return a simple space in the event $post is undefined
|
57 |
+
|
58 |
= 1.0.2 =
|
59 |
* Fixed an issue with two undefined variables
|
60 |
|
wp-gallery-custom-links.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Gallery Custom Links
|
4 |
Plugin URI: http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/
|
5 |
Description: Specifiy custom links for WordPress gallery images (instead of attachment or file only).
|
6 |
-
Version: 1.0.
|
7 |
Author: Four Lights Web Development
|
8 |
Author URI: http://www.fourlightsweb.com
|
9 |
License: GPL2
|
@@ -72,6 +72,10 @@ class WPGalleryCustomLinks {
|
|
72 |
public static function apply_filter_post_gallery( $output, $attr ) {
|
73 |
global $post;
|
74 |
|
|
|
|
|
|
|
|
|
75 |
if( self::$first_call ) {
|
76 |
// Our first run, so the gallery function thinks it's being
|
77 |
// overwritten. Set the variable to prevent actual endless
|
3 |
Plugin Name: WP Gallery Custom Links
|
4 |
Plugin URI: http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/
|
5 |
Description: Specifiy custom links for WordPress gallery images (instead of attachment or file only).
|
6 |
+
Version: 1.0.3
|
7 |
Author: Four Lights Web Development
|
8 |
Author URI: http://www.fourlightsweb.com
|
9 |
License: GPL2
|
72 |
public static function apply_filter_post_gallery( $output, $attr ) {
|
73 |
global $post;
|
74 |
|
75 |
+
// Apparently there's weird cases where $post may not be set?
|
76 |
+
// Adding this check just in case...
|
77 |
+
if ( ! $post ) return ' ';
|
78 |
+
|
79 |
if( self::$first_call ) {
|
80 |
// Our first run, so the gallery function thinks it's being
|
81 |
// overwritten. Set the variable to prevent actual endless
|