Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.56

Version Description

  • Fixed: Play/pause button in carousel view.
  • Fixed: Recreate thumbnail.
  • Fixed: Division by zero in pagination.
  • Changed: Add to pinterest description image alt.
Download this release

Release Info

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

Code changes from version 1.2.55 to 1.2.56

admin/controllers/BWGControllerGalleries_bwg.php CHANGED
@@ -21,9 +21,8 @@ class BWGControllerGalleries_bwg {
21
  public function execute() {
22
  $task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
23
  $id = ((isset($_POST['current_id'])) ? esc_html(stripslashes($_POST['current_id'])) : 0);
24
-
25
- if($task != ''){
26
- if(!WDWLibrary::verify_nonce('galleries_bwg')){
27
  die('Sorry, your nonce did not verify.');
28
  }
29
  }
@@ -1024,16 +1023,17 @@ class BWGControllerGalleries_bwg {
1024
  global $WD_BWG_UPLOAD_DIR;
1025
  global $wpdb;
1026
  $flag = FALSE;
1027
- $img_ids = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'bwg_image');
 
 
1028
  foreach ($img_ids as $img_id) {
1029
  if (isset($_POST['check_' . $img_id->id]) || isset($_POST['check_all_items'])) {
1030
  $flag = TRUE;
1031
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES));
1032
  $new_file_path = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES);
1033
- $options = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_option');
1034
  list($img_width, $img_height, $type) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
1035
  if (!$img_width || !$img_height) {
1036
- return FALSE;
1037
  }
1038
  $max_width = $options->upload_thumb_width;
1039
  $max_height = $options->upload_thumb_height;
21
  public function execute() {
22
  $task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
23
  $id = ((isset($_POST['current_id'])) ? esc_html(stripslashes($_POST['current_id'])) : 0);
24
+ if ($task != '') {
25
+ if (!WDWLibrary::verify_nonce('galleries_bwg')) {
 
26
  die('Sorry, your nonce did not verify.');
27
  }
28
  }
1023
  global $WD_BWG_UPLOAD_DIR;
1024
  global $wpdb;
1025
  $flag = FALSE;
1026
+ $gallery_id = ((isset($_POST['current_id'])) ? esc_html(stripslashes($_POST['current_id'])) : 0);
1027
+ $img_ids = $wpdb->get_results($wpdb->prepare('SELECT id, thumb_url FROM ' . $wpdb->prefix . 'bwg_image WHERE gallery_id="%d"', $gallery_id));
1028
+ $options = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_option');
1029
  foreach ($img_ids as $img_id) {
1030
  if (isset($_POST['check_' . $img_id->id]) || isset($_POST['check_all_items'])) {
1031
  $flag = TRUE;
1032
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES));
1033
  $new_file_path = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES);
 
1034
  list($img_width, $img_height, $type) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
1035
  if (!$img_width || !$img_height) {
1036
+ continue;
1037
  }
1038
  $max_width = $options->upload_thumb_width;
1039
  $max_height = $options->upload_thumb_height;
framework/WDWLibrary.php CHANGED
@@ -483,6 +483,7 @@ class WDWLibrary {
483
 
484
  public static function ajax_html_frontend_page_nav($theme_row, $count_items, $page_number, $form_id, $items_per_page, $current_view, $id, $cur_alb_gal_id = 0, $type = 'album', $enable_seo = false, $pagination = 1) {
485
  $limit = $page_number > 1 ? $items_per_page['load_more_image_count'] : $items_per_page['images_per_page'];
 
486
  $type = (isset($_POST['type_' . $current_view]) ? esc_html($_POST['type_' . $current_view]) : $type);
487
  $album_gallery_id = (isset($_POST['album_gallery_id_' . $current_view]) ? esc_html($_POST['album_gallery_id_' . $current_view]) : $cur_alb_gal_id);
488
  if ($count_items) {
483
 
484
  public static function ajax_html_frontend_page_nav($theme_row, $count_items, $page_number, $form_id, $items_per_page, $current_view, $id, $cur_alb_gal_id = 0, $type = 'album', $enable_seo = false, $pagination = 1) {
485
  $limit = $page_number > 1 ? $items_per_page['load_more_image_count'] : $items_per_page['images_per_page'];
486
+ $limit = $limit ? $limit : 1;
487
  $type = (isset($_POST['type_' . $current_view]) ? esc_html($_POST['type_' . $current_view]) : $type);
488
  $album_gallery_id = (isset($_POST['album_gallery_id_' . $current_view]) ? esc_html($_POST['album_gallery_id_' . $current_view]) : $cur_alb_gal_id);
489
  if ($count_items) {
languages/bwg-sr_RS.mo CHANGED
Binary file
languages/bwg-sr_RS.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: bwg\n"
4
  "POT-Creation-Date: 2015-04-02 14:48+0400\n"
5
- "PO-Revision-Date: 2015-09-01 16:40+0400\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: sr\n"
2
  msgstr ""
3
  "Project-Id-Version: bwg\n"
4
  "POT-Creation-Date: 2015-04-02 14:48+0400\n"
5
+ "PO-Revision-Date: 2015-09-04 18:38+0400\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: sr\n"
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * 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.
7
- * Version: 1.2.55
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -2311,7 +2311,7 @@ function bwg_activate() {
2311
  ));
2312
  }
2313
  $version = get_option("wd_bwg_version");
2314
- $new_version = '1.2.55';
2315
  if ($version && version_compare($version, $new_version, '<')) {
2316
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2317
  bwg_update($version);
@@ -2359,7 +2359,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
2359
 
2360
  function bwg_update_hook() {
2361
  $version = get_option("wd_bwg_version");
2362
- $new_version = '1.2.55';
2363
  if ($version && version_compare($version, $new_version, '<')) {
2364
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2365
  bwg_update($version);
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * 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.
7
+ * Version: 1.2.56
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
2311
  ));
2312
  }
2313
  $version = get_option("wd_bwg_version");
2314
+ $new_version = '1.2.56';
2315
  if ($version && version_compare($version, $new_version, '<')) {
2316
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2317
  bwg_update($version);
2359
 
2360
  function bwg_update_hook() {
2361
  $version = get_option("wd_bwg_version");
2362
+ $new_version = '1.2.56';
2363
  if ($version && version_compare($version, $new_version, '<')) {
2364
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2365
  bwg_update($version);
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Gallery ===
2
  Contributors: webdorado
3
  Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
- Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, fotogalerie, galleria, galerie, galeri, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, mosaic
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
- Stable tag: 1.2.55
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -207,6 +207,12 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
207
 
208
  == Changelog ==
209
 
 
 
 
 
 
 
210
  = 1.2.55 =
211
  * Added: Support/rate us messages.
212
 
1
  === Gallery ===
2
  Contributors: webdorado
3
  Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
+ Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, fotogalerie, galleria, galerie, galeri, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
+ Stable tag: 1.2.56
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
207
 
208
  == Changelog ==
209
 
210
+ = 1.2.56 =
211
+ * Fixed: Play/pause button in carousel view.
212
+ * Fixed: Recreate thumbnail.
213
+ * Fixed: Division by zero in pagination.
214
+ * Changed: Add to pinterest description image alt.
215
+
216
  = 1.2.55 =
217
  * Added: Support/rate us messages.
218