Photo Gallery by WD – Responsive Photo Gallery - Version 1.5.26

Version Description

  • Fixed: Embed issue.
  • Fixed: Issue with uploading multiple images at once.
Download this release

Release Info

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

Code changes from version 1.5.25 to 1.5.26

filemanager/view.php CHANGED
@@ -302,7 +302,7 @@ class FilemanagerView {
302
  jQuery("#jQueryUploader").fileupload({
303
  dataType: "json",
304
  dropZone: jQuery("#uploader_hitter"),
305
- limitConcurrentUploads: 30, // upload step by step
306
  acceptFileTypes: /(\.|\/)(jpe?g|gif|png)$/i,
307
  submit: function (e, data) {
308
  isUploading = true;
302
  jQuery("#jQueryUploader").fileupload({
303
  dataType: "json",
304
  dropZone: jQuery("#uploader_hitter"),
305
+ limitConcurrentUploads: 10, // upload step by step
306
  acceptFileTypes: /(\.|\/)(jpe?g|gif|png)$/i,
307
  submit: function (e, data) {
308
  isUploading = true;
framework/WDWLibraryEmbed.php CHANGED
@@ -302,7 +302,7 @@ class WDWLibraryEmbed {
302
  'filetype' => $embed_type."_VIDEO",
303
  'date_modified' => date("Y-m-d H:i:s"),
304
  'resolution' => $result->width." x ".$result->height." px",
305
- 'resolution_thumb' => $result->width."x".$result->height,
306
  'redirect_url' => '');
307
  return json_encode($embedData);
308
  }
@@ -319,8 +319,8 @@ class WDWLibraryEmbed {
319
  'size' => '',
320
  'filetype' => $embed_type."_VIDEO",
321
  'date_modified' => date("Y-m-d H:i:s"),
322
- 'resolution' => $result->width." x ".$result->height." px",
323
- 'resolution_thumb' => $result->width."x".$result->height,
324
  'redirect_url' => '');
325
 
326
  return json_encode($embedData);
@@ -348,7 +348,7 @@ class WDWLibraryEmbed {
348
  'filetype' => $embed_type,
349
  'date_modified' => date("Y-m-d H:i:s"),
350
  'resolution' => $result->width." x ".$result->height." px",
351
- 'resolution_thumb' => $result->width."x".$result->height,
352
  'redirect_url' => '');
353
  return json_encode($embedData);
354
  }
@@ -367,7 +367,7 @@ class WDWLibraryEmbed {
367
  'filetype' => $embed_type."_VIDEO",
368
  'date_modified' => date("Y-m-d H:i:s"),
369
  'resolution' => $result->width." x ".$result->height." px",
370
- 'resolution_thumb' => $result->width."x".$result->height,
371
  'redirect_url' => '');
372
 
373
  return json_encode($embedData);
302
  'filetype' => $embed_type."_VIDEO",
303
  'date_modified' => date("Y-m-d H:i:s"),
304
  'resolution' => $result->width." x ".$result->height." px",
305
+ 'resolution_thumb' => $result->thumbnail_width . " x " . $result->thumbnail_height,
306
  'redirect_url' => '');
307
  return json_encode($embedData);
308
  }
319
  'size' => '',
320
  'filetype' => $embed_type."_VIDEO",
321
  'date_modified' => date("Y-m-d H:i:s"),
322
+ 'resolution' => $result->thumbnail_width . " x " . $result->thumbnail_height,
323
+ 'resolution_thumb' => $result->thumbnail_width . " x " . $result->thumbnail_height,
324
  'redirect_url' => '');
325
 
326
  return json_encode($embedData);
348
  'filetype' => $embed_type,
349
  'date_modified' => date("Y-m-d H:i:s"),
350
  'resolution' => $result->width." x ".$result->height." px",
351
+ 'resolution_thumb' => $result->thumbnail_width . " x " . $result->thumbnail_height,
352
  'redirect_url' => '');
353
  return json_encode($embedData);
354
  }
367
  'filetype' => $embed_type."_VIDEO",
368
  'date_modified' => date("Y-m-d H:i:s"),
369
  'resolution' => $result->width." x ".$result->height." px",
370
+ 'resolution_thumb' => $result->thumbnail_width . " x " . $result->thumbnail_height,
371
  'redirect_url' => '');
372
 
373
  return json_encode($embedData);
js/bwg.js CHANGED
@@ -1740,13 +1740,16 @@ function bwg_add_image(files) {
1740
  var instagram_post_height = files[i]['resolution'].split('x')[1].trim();
1741
  var html = jQuery(".wd-template").clone().html();
1742
  var name = files[i]['name'].substr(0, files[i]['name'].lastIndexOf('.')) || files[i]['name'];
1743
-
 
 
 
1744
  html = html.replace(/tempid/g, bwg_j)
1745
  .replace(/tempnum/g, 1)
1746
  .replace(/tempimage_url/g, encodeURIComponent(files[i]['url']))
1747
  .replace(/tempthumb_url/g, encodeURIComponent(files[i]['thumb_url']))
1748
  .replace(/tempthumb_src=""/g, 'src="' + files[i]['thumb'] + '"')
1749
- .replace(/tempfilename/g, name)
1750
  .replace(/tempdate/g, files[i]['date_modified'])
1751
  .replace(/tempresolution/g, files[i]['resolution'])
1752
  .replace(/tempthumbresolution/g, files[i]['resolution_thumb'])
1740
  var instagram_post_height = files[i]['resolution'].split('x')[1].trim();
1741
  var html = jQuery(".wd-template").clone().html();
1742
  var name = files[i]['name'].substr(0, files[i]['name'].lastIndexOf('.')) || files[i]['name'];
1743
+ var filename = files[i]['filename'];
1744
+ if ( name != "" ) {
1745
+ filename = name;
1746
+ }
1747
  html = html.replace(/tempid/g, bwg_j)
1748
  .replace(/tempnum/g, 1)
1749
  .replace(/tempimage_url/g, encodeURIComponent(files[i]['url']))
1750
  .replace(/tempthumb_url/g, encodeURIComponent(files[i]['thumb_url']))
1751
  .replace(/tempthumb_src=""/g, 'src="' + files[i]['thumb'] + '"')
1752
+ .replace(/tempfilename/g, filename)
1753
  .replace(/tempdate/g, files[i]['date_modified'])
1754
  .replace(/tempresolution/g, files[i]['resolution'])
1755
  .replace(/tempthumbresolution/g, files[i]['resolution_thumb'])
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
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.5.25
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/plugins/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -81,8 +81,8 @@ final class BWG {
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
- $this->plugin_version = '1.5.25';
85
- $this->db_version = '1.5.25';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
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.5.26
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/plugins/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
+ $this->plugin_version = '1.5.26';
85
+ $this->db_version = '1.5.26';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport,10web
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: 5.2
6
- Stable tag: 1.5.25
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -282,8 +282,12 @@ Choose whether to display random or the first/last specific number of images.
282
 
283
  == Changelog ==
284
 
 
 
 
 
285
  = 1.5.25 =
286
- * Fixed: Security issue
287
 
288
  = 1.5.24 =
289
  * Fixed: Major bug.
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: 5.2
6
+ Stable tag: 1.5.26
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
282
 
283
  == Changelog ==
284
 
285
+ = 1.5.26 =
286
+ * Fixed: Embed issue.
287
+ * Fixed: Issue with uploading multiple images at once.
288
+
289
  = 1.5.25 =
290
+ * Fixed: Security issue
291
 
292
  = 1.5.24 =
293
  * Fixed: Major bug.