Photo Gallery by WD – Responsive Photo Gallery - Version 1.0.4

Version Description

Download this release

Release Info

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

Code changes from version 1.0.3 to 1.0.4

filemanager/UploadHandler.php CHANGED
@@ -836,3 +836,5 @@ class UploadHandler
836
  }
837
 
838
  }
 
 
836
  }
837
 
838
  }
839
+
840
+ die();
filemanager/view.php CHANGED
@@ -285,7 +285,7 @@ class FilemanagerView {
285
  </div>
286
  <div id="btnBrowseContainer">
287
  <input id="jQueryUploader" type="file" name="files[]"
288
- data-url="<?php echo WD_BWG_URL . '/filemanager/UploadHandler.php?thumb_width=' . $this->controller->get_options_data()->thumb_width . '&thumb_height=' . $this->controller->get_options_data()->thumb_height . '&dir=' . $this->controller->get_uploads_dir() . '/' . (isset($_REQUEST['dir']) ? $_REQUEST['dir'] : '') . '/'; ?>"
289
  multiple>
290
  </div>
291
  <script>
@@ -308,7 +308,7 @@ class FilemanagerView {
308
  }
309
  },
310
  done: function (e, data) {
311
- $.each(data.result.files, function (index, file) {
312
  console.log(file.name, index);
313
  if (file.error) {
314
  alert(errorLoadingFile + ' :: ' + file.error);
285
  </div>
286
  <div id="btnBrowseContainer">
287
  <input id="jQueryUploader" type="file" name="files[]"
288
+ data-url="<?php echo add_query_arg(array('action' => 'bwg_UploadHandler', 'thumb_width' => $this->controller->get_options_data()->thumb_width, 'thumb_height' => $this->controller->get_options_data()->thumb_height, 'dir' => $this->controller->get_uploads_dir() . '/' . (isset($_REQUEST['dir']) ? $_REQUEST['dir'] : '')), admin_url('admin-ajax.php')); ?>"
289
  multiple>
290
  </div>
291
  <script>
308
  }
309
  },
310
  done: function (e, data) {
311
+ jQuery.each(data.result.files, function (index, file) {
312
  console.log(file.name, index);
313
  if (file.error) {
314
  alert(errorLoadingFile + ' :: ' + file.error);
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://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.0.3
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
@@ -78,6 +78,7 @@ function bwg_ajax_frontend() {
78
  }
79
  }
80
 
 
81
  add_action('wp_ajax_addAlbumsGalleries', 'bwg_ajax');
82
  add_action('wp_ajax_addImages', 'bwg_filemanager_ajax');
83
  add_action('wp_ajax_addMusic', 'bwg_filemanager_ajax');
@@ -90,6 +91,11 @@ add_action('wp_ajax_bwg_captcha', 'bwg_captcha');
90
  add_action('wp_ajax_nopriv_GalleryBox', 'bwg_ajax_frontend');
91
  add_action('wp_ajax_nopriv_bwg_captcha', 'bwg_captcha');
92
 
 
 
 
 
 
93
  function bwg_filemanager_ajax() {
94
  global $wpdb;
95
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://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.0.4
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
78
  }
79
  }
80
 
81
+ add_action('wp_ajax_bwg_UploadHandler', 'bwg_UploadHandler');
82
  add_action('wp_ajax_addAlbumsGalleries', 'bwg_ajax');
83
  add_action('wp_ajax_addImages', 'bwg_filemanager_ajax');
84
  add_action('wp_ajax_addMusic', 'bwg_filemanager_ajax');
91
  add_action('wp_ajax_nopriv_GalleryBox', 'bwg_ajax_frontend');
92
  add_action('wp_ajax_nopriv_bwg_captcha', 'bwg_captcha');
93
 
94
+ // Upload.
95
+ function bwg_UploadHandler() {
96
+ require_once (WD_BWG_DIR . '/filemanager/UploadHandler.php');
97
+ }
98
+
99
  function bwg_filemanager_ajax() {
100
  global $wpdb;
101
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: gallery, galleries, photo , photo gallery , image gallery, video gallery, 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, image, photogallery, widget gallery, 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
5
  Requires at least: 3.0
6
  Tested up to: 3.8
7
- Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Tags: gallery, galleries, photo , photo gallery , image gallery, video gallery, 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, image, photogallery, widget gallery, 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
5
  Requires at least: 3.0
6
  Tested up to: 3.8
7
+ Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10