Photo Gallery by WD – Responsive Photo Gallery - Version 1.4.3

Version Description

  • Fixed: Embed type galleries.
  • Fixed: Minor bug with PHP v5.3.
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Photo Gallery by WD – Responsive Photo Gallery
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

admin/controllers/Options.php CHANGED
@@ -248,8 +248,9 @@ class OptionsController_bwg {
248
  $new_file_path = htmlspecialchars_decode(ABSPATH . BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES);
249
  $image = wp_get_image_editor( $file_path );
250
  if ( ! is_wp_error( $image ) ) {
251
- $img_width = $image->get_size()['width'];
252
- $img_height = $image->get_size()['height'];
 
253
  }
254
  if (!$img_width || !$img_height) {
255
  continue;
248
  $new_file_path = htmlspecialchars_decode(ABSPATH . BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES);
249
  $image = wp_get_image_editor( $file_path );
250
  if ( ! is_wp_error( $image ) ) {
251
+ $image_size = $image->get_size();
252
+ $img_width = $image_size['width'];
253
+ $img_height = $image_size['height'];
254
  }
255
  if (!$img_width || !$img_height) {
256
  continue;
filemanager/UploadHandler.php CHANGED
@@ -302,8 +302,9 @@ class bwg_UploadHandler {
302
  $image = wp_get_image_editor( $file_path );
303
  $success = false;
304
  if ( ! is_wp_error( $image ) ) {
305
- $img_width = $image->get_size()['width'];
306
- $img_height = $image->get_size()['height'];
 
307
  if (!$img_width || !$img_height) {
308
  return false;
309
  }
302
  $image = wp_get_image_editor( $file_path );
303
  $success = false;
304
  if ( ! is_wp_error( $image ) ) {
305
+ $image_size = $image->get_size();
306
+ $img_width = $image_size['width'];
307
+ $img_height = $image_size['height'];
308
  if (!$img_width || !$img_height) {
309
  return false;
310
  }
framework/WDWLibrary.php CHANGED
@@ -1349,8 +1349,10 @@ class WDWLibrary {
1349
  $images = array();
1350
  if ( !empty($rows) ) {
1351
  foreach ( $rows as $row ) {
1352
- $row->image_url = $row->image_url . '?bwg=' . $row->modified_date;
1353
- $row->thumb_url = $row->thumb_url . '?bwg=' . $row->modified_date;
 
 
1354
  $images[] = $row;
1355
  }
1356
  }
1349
  $images = array();
1350
  if ( !empty($rows) ) {
1351
  foreach ( $rows as $row ) {
1352
+ if ( strpos($row->filetype, 'EMBED') === FALSE ) {
1353
+ $row->image_url = $row->image_url . '?bwg=' . $row->modified_date;
1354
+ $row->thumb_url = $row->thumb_url . '?bwg=' . $row->modified_date;
1355
+ }
1356
  $images[] = $row;
1357
  }
1358
  }
frontend/models/BWGModelGalleryBox.php CHANGED
@@ -46,8 +46,10 @@ class BWGModelGalleryBox {
46
  foreach ( $rows as $row ) {
47
  $row->pure_image_url = $row->image_url;
48
  $row->pure_thumb_url = $row->thumb_url;
49
- $row->image_url = $row->image_url . '?bwg=' . $row->modified_date;
50
- $row->thumb_url = $row->thumb_url . '?bwg=' . $row->modified_date;
 
 
51
  $images[] = $row;
52
  }
53
  }
46
  foreach ( $rows as $row ) {
47
  $row->pure_image_url = $row->image_url;
48
  $row->pure_thumb_url = $row->thumb_url;
49
+ if ( strpos($row->filetype, 'EMBED') === FALSE ) {
50
+ $row->image_url = $row->image_url . '?bwg=' . $row->modified_date;
51
+ $row->thumb_url = $row->thumb_url . '?bwg=' . $row->modified_date;
52
+ }
53
  $images[] = $row;
54
  }
55
  }
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
- * Version: 1.4.2
7
  * Author: Photo Gallery Team
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -83,8 +83,8 @@ final class BWG {
83
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
84
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
85
  $this->main_file = plugin_basename(__FILE__);
86
- $this->plugin_version = '1.4.2';
87
- $this->db_version = '1.4.2';
88
  $this->prefix = 'bwg';
89
  $this->nicename = __('Photo Gallery', $this->prefix);
90
 
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
+ * Version: 1.4.3
7
  * Author: Photo Gallery Team
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
83
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
84
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
85
  $this->main_file = plugin_basename(__FILE__);
86
+ $this->plugin_version = '1.4.3';
87
+ $this->db_version = '1.4.3';
88
  $this->prefix = 'bwg';
89
  $this->nicename = __('Photo Gallery', $this->prefix);
90
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
- Stable tag: 1.4.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -279,6 +279,10 @@ Choose whether to display random or the first/last specific number of images.
279
 
280
  == Changelog ==
281
 
 
 
 
 
282
  = 1.4.2 =
283
  * Fixed: Unicode filenames.
284
  * Fixed: Deleting all images from gallery.
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
+ Stable tag: 1.4.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
279
 
280
  == Changelog ==
281
 
282
+ = 1.4.3 =
283
+ * Fixed: Embed type galleries.
284
+ * Fixed: Minor bug with PHP v5.3.
285
+
286
  = 1.4.2 =
287
  * Fixed: Unicode filenames.
288
  * Fixed: Deleting all images from gallery.