Version Description
- Fix error on 404 pages about Trying to get property ID of non-object
Download this release
Release Info
Developer | devrix |
Plugin | Easy Image Gallery |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.3
- easy-image-gallery.php +1 -1
- includes/gutenberg-block/src/init.php +4 -0
- readme.txt +4 -1
easy-image-gallery.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Easy Image Gallery
|
4 |
Plugin URI: http://devrix.com/
|
5 |
Description: An easy to use image gallery with drag & drop re-ordering
|
6 |
-
Version: 1.4.
|
7 |
Author: DevriX
|
8 |
Author URI: http://devrix.com/
|
9 |
Text Domain: easy-image-gallery
|
3 |
Plugin Name: Easy Image Gallery
|
4 |
Plugin URI: http://devrix.com/
|
5 |
Description: An easy to use image gallery with drag & drop re-ordering
|
6 |
+
Version: 1.4.3
|
7 |
Author: DevriX
|
8 |
Author URI: http://devrix.com/
|
9 |
Text Domain: easy-image-gallery
|
includes/gutenberg-block/src/init.php
CHANGED
@@ -37,6 +37,10 @@ function easy_image_gallery_hide( $post_id ) {
|
|
37 |
function easy_image_gallery_block_cgb_block_assets() { // phpcs:ignore
|
38 |
global $post;
|
39 |
|
|
|
|
|
|
|
|
|
40 |
if ( true === easy_image_gallery_hide( $post->ID) ) {
|
41 |
return;
|
42 |
}
|
37 |
function easy_image_gallery_block_cgb_block_assets() { // phpcs:ignore
|
38 |
global $post;
|
39 |
|
40 |
+
if( empty( $post->ID ) ){
|
41 |
+
return;
|
42 |
+
}
|
43 |
+
|
44 |
if ( true === easy_image_gallery_hide( $post->ID) ) {
|
45 |
return;
|
46 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: devrix, nofearinc
|
|
3 |
Tags: image gallery, image, galleries, simple, easy, devrix
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 5.3.2
|
6 |
-
Stable tag: 1.4.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -118,6 +118,9 @@ The plugin ownership was transferred to DevriX. There are no functionality chang
|
|
118 |
|
119 |
== Changelog ==
|
120 |
|
|
|
|
|
|
|
121 |
= 1.4.2 =
|
122 |
* Release date - May 14, 2020
|
123 |
* Fixed PHP warning about array_key_exists()
|
3 |
Tags: image gallery, image, galleries, simple, easy, devrix
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 5.3.2
|
6 |
+
Stable tag: 1.4.3
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
118 |
|
119 |
== Changelog ==
|
120 |
|
121 |
+
= 1.4.3 =
|
122 |
+
* Fix error on 404 pages about Trying to get property ‘ID’ of non-object
|
123 |
+
|
124 |
= 1.4.2 =
|
125 |
* Release date - May 14, 2020
|
126 |
* Fixed PHP warning about array_key_exists()
|