Version Description
(2022/05/17) = * Fix: Avoid useless logs. * 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 | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.9 to 2.1.0
- classes/core.php +3 -3
- common/ratings.php +3 -3
- gallery-custom-links.php +2 -2
- readme.txt +6 -3
classes/core.php
CHANGED
@@ -138,9 +138,9 @@ class Meow_MGCL_Core
|
|
138 |
$mediaId = $this->resolve_image_id( $url );
|
139 |
}
|
140 |
|
141 |
-
if ( $this->enableLogs ) {
|
142 |
-
|
143 |
-
}
|
144 |
|
145 |
if ( $mediaId ) {
|
146 |
$url = get_post_meta( $mediaId, '_gallery_link_url', true );
|
138 |
$mediaId = $this->resolve_image_id( $url );
|
139 |
}
|
140 |
|
141 |
+
// if ( $this->enableLogs ) {
|
142 |
+
// error_log( 'Linker: Found img tag with classes: ' . $classes );
|
143 |
+
// }
|
144 |
|
145 |
if ( $mediaId ) {
|
146 |
$url = get_post_meta( $mediaId, '_gallery_link_url', true );
|
common/ratings.php
CHANGED
@@ -31,9 +31,9 @@ if ( !class_exists( 'MeowCommon_Ratings' ) ) {
|
|
31 |
function create_rating_date() {
|
32 |
$rating_date = get_option( $this->prefix . '_rating_date' );
|
33 |
if ( empty( $rating_date ) ) {
|
34 |
-
$
|
35 |
-
$
|
36 |
-
$rating_date = mt_rand( $
|
37 |
update_option( $this->prefix . '_rating_date', $rating_date, false );
|
38 |
}
|
39 |
return $rating_date;
|
31 |
function create_rating_date() {
|
32 |
$rating_date = get_option( $this->prefix . '_rating_date' );
|
33 |
if ( empty( $rating_date ) ) {
|
34 |
+
$two_weeks = strtotime( '+2 weeks' );
|
35 |
+
$three_weeks = strtotime( '+3 weeks' );
|
36 |
+
$rating_date = mt_rand( $two_weeks, $three_weeks );
|
37 |
update_option( $this->prefix . '_rating_date', $rating_date, false );
|
38 |
}
|
39 |
return $rating_date;
|
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: 2.0
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: gallery-custom-links
|
@@ -15,7 +15,7 @@ http://www.gnu.org/licenses/gpl.html
|
|
15 |
*/
|
16 |
|
17 |
if ( !defined( 'MGCL_VERSION' ) ) {
|
18 |
-
define( 'MGCL_VERSION', '2.0
|
19 |
define( 'MGCL_PREFIX', 'mgcl' );
|
20 |
define( 'MGCL_DOMAIN', 'gallery-custom-links' );
|
21 |
define( 'MGCL_ENTRY', __FILE__ );
|
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: 2.1.0
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: gallery-custom-links
|
15 |
*/
|
16 |
|
17 |
if ( !defined( 'MGCL_VERSION' ) ) {
|
18 |
+
define( 'MGCL_VERSION', '2.1.0' );
|
19 |
define( 'MGCL_PREFIX', 'mgcl' );
|
20 |
define( 'MGCL_DOMAIN', 'gallery-custom-links' );
|
21 |
define( 'MGCL_ENTRY', __FILE__ );
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: TigrouMeow
|
|
3 |
Tags: custom, links, gallery, gutenberg
|
4 |
Donate link: https://meowapps.com/donation/
|
5 |
Requires at least: 5.0
|
6 |
-
Tested up to:
|
7 |
Requires PHP: 7.0
|
8 |
-
Stable tag: 2.0
|
9 |
|
10 |
Gallery Custom Links allows you to link images from galleries to a specified URL. Tested with WordPress Gallery, Gutenberg, the Meow Gallery and others.
|
11 |
|
@@ -42,9 +42,12 @@ Replace all the files. Nothing else to do.
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
|
|
45 |
= 2.0.9 (2022/03/18) =
|
46 |
* Fix: Compatibility with the latest version of Gutenberg Gallery.
|
47 |
-
* 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 :)
|
48 |
|
49 |
= 2.0.8 (2022/03/18) =
|
50 |
* Update: Latest versions of DiDom and HTML Dom Parser (might be better and faster).
|
3 |
Tags: custom, links, gallery, gutenberg
|
4 |
Donate link: https://meowapps.com/donation/
|
5 |
Requires at least: 5.0
|
6 |
+
Tested up to: 6.0
|
7 |
Requires PHP: 7.0
|
8 |
+
Stable tag: 2.1.0
|
9 |
|
10 |
Gallery Custom Links allows you to link images from galleries to a specified URL. Tested with WordPress Gallery, Gutenberg, the Meow Gallery and others.
|
11 |
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 2.1.0 (2022/05/17) =
|
46 |
+
* Fix: Avoid useless logs.
|
47 |
+
* 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 :)
|
48 |
+
|
49 |
= 2.0.9 (2022/03/18) =
|
50 |
* Fix: Compatibility with the latest version of Gutenberg Gallery.
|
|
|
51 |
|
52 |
= 2.0.8 (2022/03/18) =
|
53 |
* Update: Latest versions of DiDom and HTML Dom Parser (might be better and faster).
|