Photo Gallery by WD – Responsive Photo Gallery - Version 1.5.31

Version Description

  • Fixed: Vulnerability problem reported by 'Tin Duong of Fortinet's FortiGuard Labs'.
Download this release

Release Info

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

Code changes from version 1.5.30 to 1.5.31

Files changed (3) hide show
  1. filemanager/model.php +12 -0
  2. photo-gallery.php +3 -3
  3. readme.txt +4 -1
filemanager/model.php CHANGED
@@ -49,6 +49,12 @@ class FilemanagerModel {
49
  $dir = $params['dir'];
50
  $orderby = $params['orderby'];
51
  $order = $params['order'];
 
 
 
 
 
 
52
  $search = $params['search'];
53
  $page_num = $params['page_num'];
54
  $page_per = $params['page_per'];
@@ -148,6 +154,12 @@ class FilemanagerModel {
148
  $search = $params['search'];
149
  $orderby = $params['orderby'];
150
  $order = $params['order'];
 
 
 
 
 
 
151
 
152
  $query = ' SELECT * FROM `' . $wpdb->prefix . 'bwg_file_paths`';
153
  $query .= ' WHERE `path` = "' . $dir . '"';
49
  $dir = $params['dir'];
50
  $orderby = $params['orderby'];
51
  $order = $params['order'];
52
+ if ( $orderby != 'size' && $orderby != 'name' ) {
53
+ $orderby = 'date_modified';
54
+ }
55
+ if ( $order != 'asc' ) {
56
+ $order = 'desc';
57
+ }
58
  $search = $params['search'];
59
  $page_num = $params['page_num'];
60
  $page_per = $params['page_per'];
154
  $search = $params['search'];
155
  $orderby = $params['orderby'];
156
  $order = $params['order'];
157
+ if ( $orderby != 'size' && $orderby != 'name' ) {
158
+ $orderby = 'date_modified';
159
+ }
160
+ if ( $order != 'asc' ) {
161
+ $order = 'desc';
162
+ }
163
 
164
  $query = ' SELECT * FROM `' . $wpdb->prefix . 'bwg_file_paths`';
165
  $query .= ' WHERE `path` = "' . $dir . '"';
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
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.30
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -84,8 +84,8 @@ final class BWG {
84
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
85
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
86
  $this->main_file = plugin_basename(__FILE__);
87
- $this->plugin_version = '1.5.30';
88
- $this->db_version = '1.5.30';
89
  $this->prefix = 'bwg';
90
  $this->nicename = __('Photo Gallery', $this->prefix);
91
 
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
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.31
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
84
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
85
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
86
  $this->main_file = plugin_basename(__FILE__);
87
+ $this->plugin_version = '1.5.31';
88
+ $this->db_version = '1.5.31';
89
  $this->prefix = 'bwg';
90
  $this->nicename = __('Photo Gallery', $this->prefix);
91
 
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.30
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -282,6 +282,9 @@ Choose whether to display random or the first/last specific number of images.
282
 
283
  == Changelog ==
284
 
 
 
 
285
  = 1.5.30 =
286
  * Removed: Banner to check website performance.
287
 
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.31
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.31 =
286
+ * Fixed: Vulnerability problem reported by 'Tin Duong of Fortinet's FortiGuard Labs'.
287
+
288
  = 1.5.30 =
289
  * Removed: Banner to check website performance.
290