Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.80

Version Description

  • Changed: Social options
  • Fixed: Instagram only gallery
Download this release

Release Info

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

Code changes from version 1.2.79 to 1.2.80

admin/views/BWGViewOptions_bwg.php CHANGED
@@ -1500,7 +1500,7 @@ class BWGViewOptions_bwg {
1500
 
1501
  <tr>
1502
  <td class="spider_label_options spider_free_version_label">
1503
- <label>Instagram CLIENT ID:</label>
1504
  </td>
1505
  <td class="spider_free_version_label">
1506
  <input id="instagram_client_id" type="text" disabled="disabled" style="display:inline-block; width:100%;" value="" />
1500
 
1501
  <tr>
1502
  <td class="spider_label_options spider_free_version_label">
1503
+ <label>Instagram Access Token:</label>
1504
  </td>
1505
  <td class="spider_free_version_label">
1506
  <input id="instagram_client_id" type="text" disabled="disabled" style="display:inline-block; width:100%;" value="" />
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.79
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -764,7 +764,7 @@ function bwg_activate() {
764
  `popup_info_full_width` tinyint(1) NOT NULL,
765
  `show_sort_images` tinyint(1) NOT NULL,
766
  `autoupdate_interval` int(4) NOT NULL,
767
- `instagram_client_id` varchar(40) NOT NULL,
768
  `description_tb` tinyint(1) NOT NULL,
769
  `enable_seo` tinyint(1) NOT NULL,
770
  `autohide_lightbox_navigation` tinyint(1) NOT NULL,
@@ -952,7 +952,7 @@ function bwg_activate() {
952
  'popup_info_full_width' => 0,
953
  'show_sort_images' => 0,
954
  'autoupdate_interval' => 30,
955
- 'instagram_client_id' => '',
956
  'description_tb' => 0,
957
  'enable_seo' => 1,
958
  'autohide_lightbox_navigation' => 1,
@@ -1900,7 +1900,7 @@ function bwg_activate() {
1900
  ));
1901
  }
1902
  $version = get_option("wd_bwg_version");
1903
- $new_version = '1.2.79';
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.79';
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.80
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
764
  `popup_info_full_width` tinyint(1) NOT NULL,
765
  `show_sort_images` tinyint(1) NOT NULL,
766
  `autoupdate_interval` int(4) NOT NULL,
767
+ `instagram_access_token` varchar(128) NOT NULL,
768
  `description_tb` tinyint(1) NOT NULL,
769
  `enable_seo` tinyint(1) NOT NULL,
770
  `autohide_lightbox_navigation` tinyint(1) NOT NULL,
952
  'popup_info_full_width' => 0,
953
  'show_sort_images' => 0,
954
  'autoupdate_interval' => 30,
955
+ 'instagram_access_token' => '',
956
  'description_tb' => 0,
957
  'enable_seo' => 1,
958
  'autohide_lightbox_navigation' => 1,
1900
  ));
1901
  }
1902
  $version = get_option("wd_bwg_version");
1903
+ $new_version = '1.2.80';
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.80';
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
@@ -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, 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.79
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.79 =
219
  * Fixed: Youtube embed size in firefox.
220
  * Fixed: Russian translation (Thanks to Ruslan Tertyshny).
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, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
+ Stable tag: 1.2.80
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.80 =
219
+ * Changed: Social options
220
+ * Fixed: Instagram only gallery
221
+
222
  = 1.2.79 =
223
  * Fixed: Youtube embed size in firefox.
224
  * Fixed: Russian translation (Thanks to Ruslan Tertyshny).
update/bwg_update.php CHANGED
@@ -336,6 +336,10 @@ function bwg_update($version) {
336
  $wpdb->update($wpdb->prefix . 'bwg_theme', array('options' => $themes), array("id" => $row->id));
337
  }
338
  }
 
 
 
 
339
  return;
340
  }
341
 
336
  $wpdb->update($wpdb->prefix . 'bwg_theme', array('options' => $themes), array("id" => $row->id));
337
  }
338
  }
339
+ // Instagram api update (change instagram_client_id to instragram_access_token)
340
+ if (version_compare($version, '1.2.80') == -1) {
341
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option CHANGE `instagram_client_id` `instagram_access_token` varchar(128) NOT NULL DEFAULT ''");
342
+ }
343
  return;
344
  }
345