Photo Gallery by WD – Responsive Photo Gallery - Version 1.3.64

Version Description

  • Fixed: Minor Bugs
Download this release

Release Info

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

Code changes from version 1.3.63 to 1.3.64

Files changed (3) hide show
  1. framework/WDWLibrary.php +1 -7
  2. photo-gallery.php +3 -3
  3. readme.txt +4 -1
framework/WDWLibrary.php CHANGED
@@ -1186,13 +1186,7 @@ class WDWLibrary {
1186
  if ( $albums_per_page ) {
1187
  $limit_str = 'LIMIT ' . $limit . ',' . $albums_per_page;
1188
  }
1189
- if ( $sort_by == "random" ) {
1190
- $sort_by = "RAND()";
1191
- }
1192
- if ( $sort_by != "RAND()" ) {
1193
- $sort_by = '`' . $sort_by . '`';
1194
- }
1195
- $row = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE album_id="%d" ORDER BY ' . $sort_by . ' ' . $sort_direction . ' ' . $limit_str, $id));
1196
  $total = $wpdb->get_var($wpdb->prepare('SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE album_id="%d"', $id));
1197
  $page_nav['total'] = $total;
1198
  $page_nav['limit'] = 1;
1186
  if ( $albums_per_page ) {
1187
  $limit_str = 'LIMIT ' . $limit . ',' . $albums_per_page;
1188
  }
1189
+ $row = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE album_id="%d" ORDER BY `order` ' . $sort_direction . ' ' . $limit_str, $id));
 
 
 
 
 
 
1190
  $total = $wpdb->get_var($wpdb->prepare('SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE album_id="%d"', $id));
1191
  $page_nav['total'] = $total;
1192
  $page_nav['limit'] = 1;
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.3.63
8
  * Author: Photo Gallery Team
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1504,7 +1504,7 @@ function bwg_activate() {
1504
  }
1505
 
1506
  $version = get_option('wd_bwg_version');
1507
- $new_version = '1.3.63';
1508
  if ($version && version_compare($version, $new_version, '<')) {
1509
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1510
  bwg_update($version);
@@ -1556,7 +1556,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1556
 
1557
  function bwg_update_hook() {
1558
  $version = get_option('wd_bwg_version');
1559
- $new_version = '1.3.63';
1560
  if ($version && version_compare($version, $new_version, '<')) {
1561
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1562
  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.3.64
8
  * Author: Photo Gallery Team
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1504
  }
1505
 
1506
  $version = get_option('wd_bwg_version');
1507
+ $new_version = '1.3.64';
1508
  if ($version && version_compare($version, $new_version, '<')) {
1509
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1510
  bwg_update($version);
1556
 
1557
  function bwg_update_hook() {
1558
  $version = get_option('wd_bwg_version');
1559
+ $new_version = '1.3.64';
1560
  if ($version && version_compare($version, $new_version, '<')) {
1561
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1562
  bwg_update($version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  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
5
  Requires at least: 3.4
6
  Tested up to: 4.9
7
- Stable tag: 1.3.63
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -187,6 +187,9 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
187
 
188
  == Changelog ==
189
 
 
 
 
190
  = 1.3.63 =
191
  * Fixed: Minor Bugs
192
 
4
  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
5
  Requires at least: 3.4
6
  Tested up to: 4.9
7
+ Stable tag: 1.3.64
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
187
 
188
  == Changelog ==
189
 
190
+ = 1.3.64 =
191
+ * Fixed: Minor Bugs
192
+
193
  = 1.3.63 =
194
  * Fixed: Minor Bugs
195