Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.57

Version Description

  • Fixed: Edit images with quotas in name.
  • Fixed: Edit newly added images.
  • Changed: Featured plugins page.
Download this release

Release Info

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

Code changes from version 1.2.56 to 1.2.57

admin/views/BWGViewEditThumb.php CHANGED
@@ -100,14 +100,15 @@ class BWGViewEditThumb {
100
 
101
  if (isset($_GET['image_url'])) {
102
  $image_data = new stdClass();
103
- $image_data->image_url = (isset($_GET['image_url']) ? esc_html($_GET['image_url']) : '');
104
- $image_data->thumb_url = (isset($_GET['thumb_url']) ? esc_html($_GET['thumb_url']) : '');
105
  $filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
106
  $thumb_filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
107
  $form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'crop', 'image_id' => $image_id, 'image_url' => $image_data->image_url, 'thumb_url' => $image_data->thumb_url, 'width' => '800', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
108
  }
109
  else {
110
  $image_data = $this->model->get_image_data($image_id);
 
111
  $filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
112
  $thumb_filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
113
  $form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'crop', 'image_id' => $image_id, 'width' => '800', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
@@ -392,14 +393,15 @@ class BWGViewEditThumb {
392
 
393
  if (isset($_GET['image_url'])) {
394
  $image_data = new stdClass();
395
- $image_data->image_url = (isset($_GET['image_url']) ? esc_html($_GET['image_url']) : '');
396
- $image_data->thumb_url = (isset($_GET['thumb_url']) ? esc_html($_GET['thumb_url']) : '');
397
  $filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
398
  $thumb_filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
399
  $form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'rotate', 'image_id' => $image_id, 'image_url' => $image_data->image_url, 'thumb_url' => $image_data->thumb_url, 'width' => '650', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
400
  }
401
  else {
402
  $image_data = $this->model->get_image_data($image_id);
 
403
  $filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
404
  $thumb_filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
405
  $form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'rotate', 'image_id' => $image_id, 'width' => '650', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
@@ -843,8 +845,16 @@ class BWGViewEditThumb {
843
  document.getElementById("edit_type").value = type;
844
  document.getElementById(form_id).submit();
845
  }
846
- var image_src = window.parent.document.getElementById("image_thumb_<?php echo $image_id; ?>").src;
847
- window.parent.document.getElementById("image_thumb_<?php echo $image_id; ?>").src = image_src + "?date=<?php echo date('Y-m-y H:i:s'); ?>";
 
 
 
 
 
 
 
 
848
  jQuery(document).ready(function() {
849
  jQuery(".bwg_opt_cont").click(function(){
850
  if (jQuery('#brightness_contrast').height() == 0)
100
 
101
  if (isset($_GET['image_url'])) {
102
  $image_data = new stdClass();
103
+ $image_data->image_url = (isset($_GET['image_url']) ? esc_html(stripcslashes($_GET['image_url'])) : '');
104
+ $image_data->thumb_url = (isset($_GET['thumb_url']) ? esc_html(stripcslashes($_GET['thumb_url'])) : '');
105
  $filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
106
  $thumb_filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
107
  $form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'crop', 'image_id' => $image_id, 'image_url' => $image_data->image_url, 'thumb_url' => $image_data->thumb_url, 'width' => '800', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
108
  }
109
  else {
110
  $image_data = $this->model->get_image_data($image_id);
111
+ $image_data->image_url = stripslashes($image_data->image_url);
112
  $filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
113
  $thumb_filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
114
  $form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'crop', 'image_id' => $image_id, 'width' => '800', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
393
 
394
  if (isset($_GET['image_url'])) {
395
  $image_data = new stdClass();
396
+ $image_data->image_url = (isset($_GET['image_url']) ? esc_html(stripcslashes($_GET['image_url'])) : '');
397
+ $image_data->thumb_url = (isset($_GET['thumb_url']) ? esc_html(stripcslashes($_GET['thumb_url'])) : '');
398
  $filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
399
  $thumb_filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
400
  $form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'rotate', 'image_id' => $image_id, 'image_url' => $image_data->image_url, 'thumb_url' => $image_data->thumb_url, 'width' => '650', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
401
  }
402
  else {
403
  $image_data = $this->model->get_image_data($image_id);
404
+ $image_data->image_url = stripcslashes($image_data->image_url);
405
  $filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
406
  $thumb_filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
407
  $form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'rotate', 'image_id' => $image_id, 'width' => '650', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
845
  document.getElementById("edit_type").value = type;
846
  document.getElementById(form_id).submit();
847
  }
848
+
849
+ if (window.parent.document.getElementById("image_thumb_pr_<?php echo $image_id; ?>") != null){
850
+ var image_src = window.parent.document.getElementById("image_thumb_pr_<?php echo $image_id; ?>").src;
851
+ window.parent.document.getElementById("image_thumb_pr_<?php echo $image_id; ?>").src = image_src + "?date=<?php echo date('Y-m-y H:i:s'); ?>";
852
+ }
853
+ else {
854
+ var image_src = window.parent.document.getElementById("image_thumb_<?php echo $image_id; ?>").src;
855
+ window.parent.document.getElementById("image_thumb_<?php echo $image_id; ?>").src = image_src + "?date=<?php echo date('Y-m-y H:i:s'); ?>";
856
+ }
857
+
858
  jQuery(document).ready(function() {
859
  jQuery(".bwg_opt_cont").click(function(){
860
  if (jQuery('#brightness_contrast').height() == 0)
featured/featured.php CHANGED
@@ -108,7 +108,13 @@ function spider_featured($current_plugin = '') {
108
  'text' => 'WordPress random post plugin',
109
  'content' => 'Spider Random Post is a small but very smart solution for your WordPress web site.',
110
  'href' => 'https://web-dorado.com/products/wordpress-random-post.html'
111
- )
 
 
 
 
 
 
112
  );
113
  ?>
114
  <div id="main_featured_plugins_page">
108
  'text' => 'WordPress random post plugin',
109
  'content' => 'Spider Random Post is a small but very smart solution for your WordPress web site.',
110
  'href' => 'https://web-dorado.com/products/wordpress-random-post.html'
111
+ ),
112
+ "faq_wd" => array(
113
+ 'title' => 'FAQ WD',
114
+ 'text' => 'WordPress FAQ plugin',
115
+ 'content' => 'Organize and publish your FAQs in an easy and elegant way using FAQ WD.',
116
+ 'href' => 'https://web-dorado.com/products/wordpress-faq-wd.html'
117
+ ),
118
  );
119
  ?>
120
  <div id="main_featured_plugins_page">
featured/images/faq_wd.png ADDED
Binary file
featured/style.css CHANGED
@@ -62,6 +62,7 @@
62
  #main_featured_plugins_page #featured-plugins-list li.photo-gallery .product {background:url("images/photo-gallery.png") center center no-repeat;}
63
  #main_featured_plugins_page #featured-plugins-list li.twitter-widget .product {background:url("images/twittertools.png") center center no-repeat;}
64
  #main_featured_plugins_page #featured-plugins-list li.events-wd .product {background:url("images/events-wd.png") center center no-repeat;}
 
65
 
66
  #main_featured_plugins_page #featured-plugins-list li .title .heading {
67
  display: block;
62
  #main_featured_plugins_page #featured-plugins-list li.photo-gallery .product {background:url("images/photo-gallery.png") center center no-repeat;}
63
  #main_featured_plugins_page #featured-plugins-list li.twitter-widget .product {background:url("images/twittertools.png") center center no-repeat;}
64
  #main_featured_plugins_page #featured-plugins-list li.events-wd .product {background:url("images/events-wd.png") center center no-repeat;}
65
+ #main_featured_plugins_page #featured-plugins-list li.faq_wd .product {background:url("images/faq_wd.png") center center no-repeat;}
66
 
67
  #main_featured_plugins_page #featured-plugins-list li .title .heading {
68
  display: block;
languages/bwg-sr_RS.mo CHANGED
Binary file
languages/bwg-sr_RS.po CHANGED
@@ -2,14 +2,14 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: bwg\n"
4
  "POT-Creation-Date: 2015-04-02 14:48+0400\n"
5
- "PO-Revision-Date: 2015-09-04 18:38+0400\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: sr\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.7\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
15
  "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
2
  msgstr ""
3
  "Project-Id-Version: bwg\n"
4
  "POT-Creation-Date: 2015-04-02 14:48+0400\n"
5
+ "PO-Revision-Date: 2015-04-02 14:48+0400\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: sr\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.7.5\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
15
  "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
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.56
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -2311,7 +2311,7 @@ function bwg_activate() {
2311
  ));
2312
  }
2313
  $version = get_option("wd_bwg_version");
2314
- $new_version = '1.2.56';
2315
  if ($version && version_compare($version, $new_version, '<')) {
2316
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2317
  bwg_update($version);
@@ -2359,7 +2359,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
2359
 
2360
  function bwg_update_hook() {
2361
  $version = get_option("wd_bwg_version");
2362
- $new_version = '1.2.56';
2363
  if ($version && version_compare($version, $new_version, '<')) {
2364
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2365
  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.57
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
2311
  ));
2312
  }
2313
  $version = get_option("wd_bwg_version");
2314
+ $new_version = '1.2.57';
2315
  if ($version && version_compare($version, $new_version, '<')) {
2316
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2317
  bwg_update($version);
2359
 
2360
  function bwg_update_hook() {
2361
  $version = get_option("wd_bwg_version");
2362
+ $new_version = '1.2.57';
2363
  if ($version && version_compare($version, $new_version, '<')) {
2364
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2365
  bwg_update($version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
- Stable tag: 1.2.56
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -207,6 +207,11 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
207
 
208
  == Changelog ==
209
 
 
 
 
 
 
210
  = 1.2.56 =
211
  * Fixed: Play/pause button in carousel view.
212
  * Fixed: Recreate thumbnail.
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
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
+ Stable tag: 1.2.57
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
207
 
208
  == Changelog ==
209
 
210
+ = 1.2.57 =
211
+ * Fixed: Edit images with quotas in name.
212
+ * Fixed: Edit newly added images.
213
+ * Changed: Featured plugins page.
214
+
215
  = 1.2.56 =
216
  * Fixed: Play/pause button in carousel view.
217
  * Fixed: Recreate thumbnail.