Version Description
- Fix: Simpler and probably better REST detection.
- Info: If you like the plugin, your reviews are welcome here :) Thank you!
Download this release
Release Info
Developer | TigrouMeow |
Plugin | Gallery Custom Links |
Version | 1.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.1.5
- gallery_custom_links.php +2 -2
- mgcl_core.php +6 -7
- 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.
|
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.
|
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.5
|
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.5';
|
27 |
|
28 |
include "mgcl_admin.php";
|
29 |
$mgcl_admin = new Meow_Gallery_Custom_Links_Admin( 'mgcl', __FILE__, 'gallery-custom-links' );
|
mgcl_core.php
CHANGED
@@ -29,14 +29,13 @@ class Meow_Gallery_Custom_Links
|
|
29 |
}
|
30 |
|
31 |
function is_rest() {
|
32 |
-
$prefix = rest_get_url_prefix(
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
36 |
}
|
37 |
-
|
38 |
-
$current_url = wp_parse_url( add_query_arg( array( ) ) );
|
39 |
-
return strpos( $current_url['path'], $rest_url['path'], 0 ) === 0;
|
40 |
}
|
41 |
|
42 |
function setOptions() {
|
29 |
}
|
30 |
|
31 |
function is_rest() {
|
32 |
+
$prefix = rest_get_url_prefix() . '/';
|
33 |
+
$method = $_SERVER['REQUEST_METHOD'];
|
34 |
+
$uri = $_SERVER['REQUEST_URI'];
|
35 |
+
if ( $method !== 'GET' && strpos( $uri, $prefix ) !== false ) {
|
36 |
+
return true;
|
37 |
}
|
38 |
+
return false;
|
|
|
|
|
39 |
}
|
40 |
|
41 |
function setOptions() {
|
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.
|
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.4 =
|
45 |
* Fix: Attempt to fix the way autoload is working.
|
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.3 =
|
49 |
* Fix: Avoid analyzing the html content if the parser returned a boolean or an empty string.
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.1
|
6 |
Requires PHP: 7.0
|
7 |
+
Stable tag: 1.1.5
|
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.5 =
|
45 |
+
* Fix: Simpler and probably better REST detection.
|
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.4 =
|
49 |
* Fix: Attempt to fix the way autoload is working.
|
|
|
50 |
|
51 |
= 1.1.3 =
|
52 |
* Fix: Avoid analyzing the html content if the parser returned a boolean or an empty string.
|