Gallery Custom Links - Version 1.1.3

Version Description

  • Fix: Avoid analyzing the html content if the parser returned a boolean or an empty string.
  • Info: If you like the plugin, your reviews are welcome here :) Thank you!
Download this release

Release Info

Developer TigrouMeow
Plugin Icon 128x128 Gallery Custom Links
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

Files changed (3) hide show
  1. gallery_custom_links.php +2 -2
  2. mgcl_core.php +4 -0
  3. readme.txt +5 -2
gallery_custom_links.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Gallery Custom Links
4
  Plugin URI: https://meowapps.com
5
  Description: Gallery Custom Links allows you to link images from galleries to a specified URL. Tested with WordPress Gallery, Gutenberg, the Meow Gallery and others.
6
- Version: 1.1.2
7
  Author: Jordy Meow
8
  Author URI: https://meowapps.com
9
  Text Domain: gallery-custom-links
@@ -23,7 +23,7 @@ if ( class_exists( 'Meow_Gallery_Custom_Links' ) ) {
23
  }
24
 
25
  global $mgcl_version;
26
- $mgcl_version = '1.1.2';
27
 
28
  include "mgcl_admin.php";
29
  $mgcl_admin = new Meow_Gallery_Custom_Links_Admin( 'mgcl', __FILE__, 'gallery-custom-links' );
3
  Plugin Name: Gallery Custom Links
4
  Plugin URI: https://meowapps.com
5
  Description: Gallery Custom Links allows you to link images from galleries to a specified URL. Tested with WordPress Gallery, Gutenberg, the Meow Gallery and others.
6
+ Version: 1.1.3
7
  Author: Jordy Meow
8
  Author URI: https://meowapps.com
9
  Text Domain: gallery-custom-links
23
  }
24
 
25
  global $mgcl_version;
26
+ $mgcl_version = '1.1.3';
27
 
28
  include "mgcl_admin.php";
29
  $mgcl_admin = new Meow_Gallery_Custom_Links_Admin( 'mgcl', __FILE__, 'gallery-custom-links' );
mgcl_core.php CHANGED
@@ -200,6 +200,10 @@ class Meow_Gallery_Custom_Links
200
  $html->loadHtml( $buffer, 0 );
201
  }
202
 
 
 
 
 
203
  $hasChanges = false;
204
  $classes = array( '' ); // Get all images
205
  //$classes = apply_filters( 'gallery_custom_links_classes', array( '.entry-content', '.gallery', '.wp-block-gallery' ) );
200
  $html->loadHtml( $buffer, 0 );
201
  }
202
 
203
+ if ( empty( $html ) || is_bool( $html ) ) {
204
+ return $buffer;
205
+ }
206
+
207
  $hasChanges = false;
208
  $classes = array( '' ); // Get all images
209
  //$classes = apply_filters( 'gallery_custom_links_classes', array( '.entry-content', '.gallery', '.wp-block-gallery' ) );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: custom, links, gallery, gutenberg
4
  Requires at least: 5.0
5
  Tested up to: 5.1
6
  Requires PHP: 7.0
7
- Stable tag: 1.1.2
8
 
9
  Gallery Custom Links allows you to link images from galleries to a specified URL. Tested with WordPress Gallery, Gutenberg, the Meow Gallery and others.
10
 
@@ -41,9 +41,12 @@ Replace all the files. Nothing else to do.
41
 
42
  == Changelog ==
43
 
 
 
 
 
44
  = 1.1.2 =
45
  * Add: Rel can now be set to nofollow.
46
- * Info: If you like the plugin, your reviews are welcome [here](https://wordpress.org/support/plugin/gallery-custom-links/reviews/?rate=5#new-post) :) Thank you!
47
 
48
  = 1.1.1 =
49
  * Update: Defaults set to Output Buffering + HtmlDomParser. Those settings work for most.
4
  Requires at least: 5.0
5
  Tested up to: 5.1
6
  Requires PHP: 7.0
7
+ Stable tag: 1.1.3
8
 
9
  Gallery Custom Links allows you to link images from galleries to a specified URL. Tested with WordPress Gallery, Gutenberg, the Meow Gallery and others.
10
 
41
 
42
  == Changelog ==
43
 
44
+ = 1.1.3 =
45
+ * Fix: Avoid analyzing the html content if the parser returned a boolean or an empty string.
46
+ * Info: If you like the plugin, your reviews are welcome [here](https://wordpress.org/support/plugin/gallery-custom-links/reviews/?rate=5#new-post) :) Thank you!
47
+
48
  = 1.1.2 =
49
  * Add: Rel can now be set to nofollow.
 
50
 
51
  = 1.1.1 =
52
  * Update: Defaults set to Output Buffering + HtmlDomParser. Those settings work for most.