Document Gallery - Version 4.1.4

Version Description

Download this release

Release Info

Developer dan.rossiter
Plugin Icon 128x128 Document Gallery
Version 4.1.4
Comparing to
See all releases

Code changes from version 4.1.5 to 4.1.4

Files changed (2) hide show
  1. CHANGELOG.md +4 -0
  2. inc/class-thumb.php +1 -1
CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
  == Changelog ==
2
 
 
 
 
 
3
  = 4.1.1 & 4.1.2 & 4.1.3 & 4.1.4 =
4
  * **Bug Fix:** Resolves various errors reported following `4.1` release.
5
 
1
  == Changelog ==
2
 
3
+ = 4.1.5 =
4
+ * **Bug Fix:** For a subset of the users upgrading from `4.0` to `4.1.x`, the thumbnail images will have been corrupted
5
+ during the upgrade process. This release addresses the problem.
6
+
7
  = 4.1.1 & 4.1.2 & 4.1.3 & 4.1.4 =
8
  * **Bug Fix:** Resolves various errors reported following `4.1` release.
9
 
inc/class-thumb.php CHANGED
@@ -367,7 +367,7 @@ class DG_Thumb {
367
 
368
  self::$thumbs = null;
369
  }
370
- } else {
371
  $sql = "DELETE FROM $postmeta WHERE meta_key = '$meta_key' AND post_id IN(" . rtrim( str_repeat( '%d,', sizeof( $ids ) ), ',' ) . ")";
372
  $result = $wpdb->query( $wpdb->prepare( $sql, $ids ) );
373
 
367
 
368
  self::$thumbs = null;
369
  }
370
+ } else if ( !empty( $ids ) ) {
371
  $sql = "DELETE FROM $postmeta WHERE meta_key = '$meta_key' AND post_id IN(" . rtrim( str_repeat( '%d,', sizeof( $ids ) ), ',' ) . ")";
372
  $result = $wpdb->query( $wpdb->prepare( $sql, $ids ) );
373