Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.77

Version Description

  • Fixed: Themes.
  • Fixed: Error on uninstall.
Download this release

Release Info

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

Code changes from version 1.2.76 to 1.2.77

admin/views/BWGViewUninstall_bwg.php CHANGED
@@ -80,7 +80,7 @@ class BWGViewUninstall_bwg {
80
  </p>
81
  <p style="text-align: center;">
82
  <input type="submit" value="UNINSTALL" class="button-primary" onclick="if (check_yes.checked) {
83
- if (confirm('<?php _e("You are About to Uninstall Photo Gallery from WordPress.\nThis Action Is Not Reversible.", 'bwg_back'); ?>')) {
84
  spider_set_input_value('task', 'uninstall');
85
  } else {
86
  return false;
80
  </p>
81
  <p style="text-align: center;">
82
  <input type="submit" value="UNINSTALL" class="button-primary" onclick="if (check_yes.checked) {
83
+ if (confirm('<?php _e("You are About to Uninstall Photo Gallery from WordPress. This Action Is Not Reversible.", 'bwg_back'); ?>')) {
84
  spider_set_input_value('task', 'uninstall');
85
  } else {
86
  return false;
frontend/models/BWGModelAlbum_compact_preview.php CHANGED
@@ -24,7 +24,10 @@ class BWGModelAlbum_compact_preview {
24
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
25
  }
26
  else {
27
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme="%d"', 1));
 
 
 
28
  }
29
  return $row;
30
  }
24
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
25
  }
26
  else {
27
+ $row = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme=1');
28
+ }
29
+ if (isset($row->options)) {
30
+ $row = json_decode($row->options);
31
  }
32
  return $row;
33
  }
frontend/models/BWGModelAlbum_extended_preview.php CHANGED
@@ -20,7 +20,15 @@ class BWGModelAlbum_extended_preview {
20
  ////////////////////////////////////////////////////////////////////////////////////////
21
  public function get_theme_row_data($id) {
22
  global $wpdb;
23
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
 
 
 
 
 
 
 
 
24
  return $row;
25
  }
26
 
20
  ////////////////////////////////////////////////////////////////////////////////////////
21
  public function get_theme_row_data($id) {
22
  global $wpdb;
23
+ if ($id) {
24
+ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
25
+ }
26
+ else {
27
+ $row = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme=1');
28
+ }
29
+ if (isset($row->options)) {
30
+ $row = json_decode($row->options);
31
+ }
32
  return $row;
33
  }
34
 
frontend/models/BWGModelGalleryBox.php CHANGED
@@ -24,7 +24,10 @@ class BWGModelGalleryBox {
24
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
25
  }
26
  else {
27
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme="%d"', 1));
 
 
 
28
  }
29
  return $row;
30
  }
24
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
25
  }
26
  else {
27
+ $row = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme=1');
28
+ }
29
+ if (isset($row->options)) {
30
+ $row = json_decode($row->options);
31
  }
32
  return $row;
33
  }
frontend/models/BWGModelImage_browser.php CHANGED
@@ -20,7 +20,15 @@ class BWGModelImage_browser {
20
  ////////////////////////////////////////////////////////////////////////////////////////
21
  public function get_theme_row_data($id) {
22
  global $wpdb;
23
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
 
 
 
 
 
 
 
 
24
  return $row;
25
  }
26
 
20
  ////////////////////////////////////////////////////////////////////////////////////////
21
  public function get_theme_row_data($id) {
22
  global $wpdb;
23
+ if ($id) {
24
+ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
25
+ }
26
+ else {
27
+ $row = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme=1');
28
+ }
29
+ if (isset($row->options)) {
30
+ $row = json_decode($row->options);
31
+ }
32
  return $row;
33
  }
34
 
frontend/models/BWGModelSlideshow.php CHANGED
@@ -24,7 +24,10 @@ class BWGModelSlideshow {
24
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
25
  }
26
  else {
27
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme="%d"', 1));
 
 
 
28
  }
29
  return $row;
30
  }
24
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
25
  }
26
  else {
27
+ $row = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme=1');
28
+ }
29
+ if (isset($row->options)) {
30
+ $row = json_decode($row->options);
31
  }
32
  return $row;
33
  }
frontend/models/BWGModelThumbnails.php CHANGED
@@ -24,7 +24,10 @@ class BWGModelThumbnails {
24
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
25
  }
26
  else {
27
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme="%d"', 1));
 
 
 
28
  }
29
  return $row;
30
  }
24
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
25
  }
26
  else {
27
+ $row = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme=1');
28
+ }
29
+ if (isset($row->options)) {
30
+ $row = json_decode($row->options);
31
  }
32
  return $row;
33
  }
frontend/models/BWGModelWidget.php CHANGED
@@ -33,7 +33,10 @@ class BWGModelWidgetFrontEnd {
33
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
34
  }
35
  else {
36
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme="%d"', 1));
 
 
 
37
  }
38
  return $row;
39
  }
33
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
34
  }
35
  else {
36
+ $row = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme=1');
37
+ }
38
+ if (isset($row->options)) {
39
+ $row = json_decode($row->options);
40
  }
41
  return $row;
42
  }
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.76
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1900,7 +1900,7 @@ function bwg_activate() {
1900
  ));
1901
  }
1902
  $version = get_option("wd_bwg_version");
1903
- $new_version = '1.2.76';
1904
  if ($version && version_compare($version, $new_version, '<')) {
1905
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1906
  bwg_update($version);
@@ -1948,7 +1948,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1948
 
1949
  function bwg_update_hook() {
1950
  $version = get_option("wd_bwg_version");
1951
- $new_version = '1.2.76';
1952
  if ($version && version_compare($version, $new_version, '<')) {
1953
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1954
  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.77
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1900
  ));
1901
  }
1902
  $version = get_option("wd_bwg_version");
1903
+ $new_version = '1.2.77';
1904
  if ($version && version_compare($version, $new_version, '<')) {
1905
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1906
  bwg_update($version);
1948
 
1949
  function bwg_update_hook() {
1950
  $version = get_option("wd_bwg_version");
1951
+ $new_version = '1.2.77';
1952
  if ($version && version_compare($version, $new_version, '<')) {
1953
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1954
  bwg_update($version);
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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, facebook integration, instagram feed, Flickr, Dailymotion, widget
5
  Requires at least: 3.4
6
- Tested up to: 4.3
7
- Stable tag: 1.2.76
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -215,6 +215,10 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
215
 
216
  == Changelog ==
217
 
 
 
 
 
218
  = 1.2.76 =
219
  * Changed: Theme DB table structure.
220
  * Fixed: Error on facebook share.
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, facebook integration, instagram feed, Flickr, Dailymotion, widget
5
  Requires at least: 3.4
6
+ Tested up to: 4.4
7
+ Stable tag: 1.2.77
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
215
 
216
  == Changelog ==
217
 
218
+ = 1.2.77 =
219
+ * Fixed: Themes.
220
+ * Fixed: Error on uninstall.
221
+
222
  = 1.2.76 =
223
  * Changed: Theme DB table structure.
224
  * Fixed: Error on facebook share.