Photo Gallery by Envira – Responsive Image Gallery for WordPress - Version 1.3.4.5

Version Description

  • Added: Better debugging when WP_DEBUG enabled and images do not crop/resize
Download this release

Release Info

Developer n7studios
Plugin Icon 128x128 Photo Gallery by Envira – Responsive Image Gallery for WordPress
Version 1.3.4.5
Comparing to
See all releases

Code changes from version 1.3.4.4 to 1.3.4.5

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.4.4
9
  * Text Domain: envira-gallery
10
  * Domain Path: languages
11
  *
@@ -54,7 +54,7 @@ class Envira_Gallery_Lite {
54
  *
55
  * @var string
56
  */
57
- public $version = '1.3.4.4';
58
 
59
  /**
60
  * The name of the plugin.
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.4.5
9
  * Text Domain: envira-gallery
10
  * Domain Path: languages
11
  *
54
  *
55
  * @var string
56
  */
57
+ public $version = '1.3.4.5';
58
 
59
  /**
60
  * The name of the plugin.
includes/admin/metaboxes.php CHANGED
@@ -1018,9 +1018,12 @@ class Envira_Gallery_Metaboxes_Lite {
1018
 
1019
  // If there is an error, possibly output error message, otherwise woot!
1020
  if ( is_wp_error( $cropped_image ) ) {
1021
- // If debugging is defined, print out the error.
1022
- if ( defined( 'ENVIRA_GALLERY_CROP_DEBUG' ) && ENVIRA_GALLERY_CROP_DEBUG ) {
1023
- echo '<pre>' . var_export( $cropped_image->get_error_message(), true ) . '</pre>';
 
 
 
1024
  }
1025
  }
1026
  }
1018
 
1019
  // If there is an error, possibly output error message, otherwise woot!
1020
  if ( is_wp_error( $cropped_image ) ) {
1021
+ // If WP_DEBUG is enabled, and we're logged in, output an error to the user
1022
+ if ( defined( 'WP_DEBUG' ) && WP_DEBUG && is_user_logged_in() ) {
1023
+ echo '<pre>Envira: Error occured resizing image (these messages are only displayed to logged in WordPress users):<br />';
1024
+ echo 'Error: ' . $cropped_image->get_error_message() . '<br />';
1025
+ echo 'Image: ' . $image . '<br />';
1026
+ echo 'Args: ' . var_export( $args, true ) . '</pre>';
1027
  }
1028
  }
1029
  }
includes/global/shortcode.php CHANGED
@@ -453,9 +453,12 @@ class Envira_Gallery_Shortcode_Lite {
453
 
454
  // If there is an error, possibly output error message and return the default image src.
455
  if ( is_wp_error( $cropped_image ) ) {
456
- // If debugging is defined, print out the error.
457
- if ( defined( 'ENVIRA_GALLERY_CROP_DEBUG' ) && ENVIRA_GALLERY_CROP_DEBUG ) {
458
- echo '<pre>' . var_export( $cropped_image->get_error_message(), true ) . '</pre>';
 
 
 
459
  }
460
 
461
  // Return the non-cropped image as a fallback.
453
 
454
  // If there is an error, possibly output error message and return the default image src.
455
  if ( is_wp_error( $cropped_image ) ) {
456
+ // If WP_DEBUG is enabled, and we're logged in, output an error to the user
457
+ if ( defined( 'WP_DEBUG' ) && WP_DEBUG && is_user_logged_in() ) {
458
+ echo '<pre>Envira: Error occured resizing image (these messages are only displayed to logged in WordPress users):<br />';
459
+ echo 'Error: ' . $cropped_image->get_error_message() . '<br />';
460
+ echo 'Image: ' . $image . '<br />';
461
+ echo 'Args: ' . var_export( $args, true ) . '</pre>';
462
  }
463
 
464
  // Return the non-cropped image as a fallback.
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.3
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.4.4 =
61
  * Fix: Localization support with correct domain
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.3.1
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
57
 
58
  == Changelog ==
59
 
60
+ = 1.3.4.5 =
61
+ * Added: Better debugging when WP_DEBUG enabled and images do not crop/resize
62
+
63
  = 1.3.4.4 =
64
  * Fix: Localization support with correct domain
65