Version Description
- Fix: Use WP_Query to get galleries by slug when cache/transient is empty, preventing gallery output blanking after a day when using caching plugins
Download this release
Release Info
Developer | n7studios |
Plugin | Photo Gallery by Envira – Responsive Image Gallery for WordPress |
Version | 1.3.5.7 |
Comparing to | |
See all releases |
Code changes from version 1.3.5.6 to 1.3.5.7
- envira-gallery-lite.php +9 -9
- readme.txt +4 -1
envira-gallery-lite.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
|
6 |
* Author: Thomas Griffin
|
7 |
* Author URI: http://thomasgriffinmedia.com
|
8 |
-
* Version: 1.3.5.
|
9 |
* Text Domain: envira-gallery-lite
|
10 |
*
|
11 |
* Envira Gallery is free software: you can redistribute it and/or modify
|
@@ -53,7 +53,7 @@ class Envira_Gallery_Lite {
|
|
53 |
*
|
54 |
* @var string
|
55 |
*/
|
56 |
-
public $version = '1.3.5.
|
57 |
|
58 |
/**
|
59 |
* Unique plugin slug identifier.
|
@@ -232,12 +232,11 @@ class Envira_Gallery_Lite {
|
|
232 |
*/
|
233 |
public function _get_gallery_by_slug( $slug ) {
|
234 |
|
235 |
-
$galleries =
|
236 |
array(
|
237 |
'post_type' => 'any',
|
238 |
-
'
|
239 |
-
'
|
240 |
-
'nopaging' => true,
|
241 |
'fields' => 'ids',
|
242 |
'meta_query' => array(
|
243 |
array(
|
@@ -248,12 +247,13 @@ class Envira_Gallery_Lite {
|
|
248 |
)
|
249 |
)
|
250 |
);
|
251 |
-
|
|
|
252 |
return false;
|
253 |
-
} else {
|
254 |
-
return get_post_meta( $galleries[0], '_eg_gallery_data', true );
|
255 |
}
|
256 |
|
|
|
|
|
257 |
}
|
258 |
|
259 |
/**
|
5 |
* Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
|
6 |
* Author: Thomas Griffin
|
7 |
* Author URI: http://thomasgriffinmedia.com
|
8 |
+
* Version: 1.3.5.7
|
9 |
* Text Domain: envira-gallery-lite
|
10 |
*
|
11 |
* Envira Gallery is free software: you can redistribute it and/or modify
|
53 |
*
|
54 |
* @var string
|
55 |
*/
|
56 |
+
public $version = '1.3.5.7';
|
57 |
|
58 |
/**
|
59 |
* Unique plugin slug identifier.
|
232 |
*/
|
233 |
public function _get_gallery_by_slug( $slug ) {
|
234 |
|
235 |
+
$galleries = new WP_Query(
|
236 |
array(
|
237 |
'post_type' => 'any',
|
238 |
+
'posts_per_page'=> -1,
|
239 |
+
'post_status' => 'publish',
|
|
|
240 |
'fields' => 'ids',
|
241 |
'meta_query' => array(
|
242 |
array(
|
247 |
)
|
248 |
)
|
249 |
);
|
250 |
+
|
251 |
+
if ( ! isset( $galleries->posts) || empty( $galleries->posts ) ) {
|
252 |
return false;
|
|
|
|
|
253 |
}
|
254 |
|
255 |
+
return get_post_meta( $galleries->posts[0], '_eg_gallery_data', true );
|
256 |
+
|
257 |
}
|
258 |
|
259 |
/**
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: griffinjt
|
3 |
Tags: wordpress gallery, gallery, wordpress gallery plugin, gallery plugin, responsive, responsive gallery, image gallery, image gallery plugin, responsive gallery plugin, responsive image gallery, responsive image gallery plugin, custom post types, slideshow, responsive slideshow, slideshow plugin, responsive slideshow plugin, rotator, image rotator, responsive rotator, jquery gallery, javascript gallery, jquery rotator, javascript rotator, picture gallery, photo gallery, photo rotator, shortcode, template tag, custom post type, media uploader, ajax, wordpress galleries, responsive galleries, fullscreen, deeplinking, best wordpress gallery, best wordpress gallery plugin, best gallery plugin, best gallery, best responsive gallery, best responsive wordpress gallery, best wp gallery, portfolio, design portfolio
|
4 |
Requires at least: 3.8
|
5 |
-
Tested up to: 4.4
|
6 |
Stable tag: trunk
|
7 |
License: GNU General Public License v2.0 or later
|
8 |
|
@@ -57,6 +57,9 @@ Also, I'm an <a href="https://thomasgriffin.io" rel="me" title="WordPress Develo
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
60 |
= 1.3.5.6 =
|
61 |
* Fix: Menu icon would not display when All In One WP Security activated
|
62 |
|
2 |
Contributors: griffinjt
|
3 |
Tags: wordpress gallery, gallery, wordpress gallery plugin, gallery plugin, responsive, responsive gallery, image gallery, image gallery plugin, responsive gallery plugin, responsive image gallery, responsive image gallery plugin, custom post types, slideshow, responsive slideshow, slideshow plugin, responsive slideshow plugin, rotator, image rotator, responsive rotator, jquery gallery, javascript gallery, jquery rotator, javascript rotator, picture gallery, photo gallery, photo rotator, shortcode, template tag, custom post type, media uploader, ajax, wordpress galleries, responsive galleries, fullscreen, deeplinking, best wordpress gallery, best wordpress gallery plugin, best gallery plugin, best gallery, best responsive gallery, best responsive wordpress gallery, best wp gallery, portfolio, design portfolio
|
4 |
Requires at least: 3.8
|
5 |
+
Tested up to: 4.4.1
|
6 |
Stable tag: trunk
|
7 |
License: GNU General Public License v2.0 or later
|
8 |
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 1.3.5.7 =
|
61 |
+
* Fix: Use WP_Query to get galleries by slug when cache/transient is empty, preventing gallery output blanking after a day when using caching plugins
|
62 |
+
|
63 |
= 1.3.5.6 =
|
64 |
* Fix: Menu icon would not display when All In One WP Security activated
|
65 |
|