Photo Gallery by WD – Responsive Photo Gallery - Version 1.3.21

Version Description

  • Fixed: Frontend content language in AJAX response on Wordpress 4.7.
  • Fixed: Images check all in backend on Wordpress 4.7.
  • Fixed: Item price with parameter.
Download this release

Release Info

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

Code changes from version 1.3.20 to 1.3.21

admin/views/BWGViewGalleries_bwg.php CHANGED
@@ -665,15 +665,9 @@ class BWGViewGalleries_bwg {
665
  onclick="spider_remove_url('button_preview_image', 'preview_image', 'delete_preview_image', 'img_preview_image')"></span>
666
  </td>
667
  </tr>
668
- <tr>
669
- <td colspan=2>
670
- <?php
671
- echo $this->image_display($id);
672
- ?>
673
- </td>
674
- </tr>
675
  </tbody>
676
  </table>
 
677
  <input id="task" name="task" type="hidden" value="" />
678
  <input id="current_id" name="current_id" type="hidden" value="<?php echo $row->id; ?>" />
679
  <script>
@@ -692,7 +686,7 @@ class BWGViewGalleries_bwg {
692
  </form>
693
  <?php
694
  }
695
-
696
  public function image_display($id) {
697
  global $WD_BWG_UPLOAD_DIR;
698
  $rows_data = $this->model->get_image_rows_data($id);
665
  onclick="spider_remove_url('button_preview_image', 'preview_image', 'delete_preview_image', 'img_preview_image')"></span>
666
  </td>
667
  </tr>
 
 
 
 
 
 
 
668
  </tbody>
669
  </table>
670
+ <?php echo $this->image_display($id); ?>
671
  <input id="task" name="task" type="hidden" value="" />
672
  <input id="current_id" name="current_id" type="hidden" value="<?php echo $row->id; ?>" />
673
  <script>
686
  </form>
687
  <?php
688
  }
689
+
690
  public function image_display($id) {
691
  global $WD_BWG_UPLOAD_DIR;
692
  $rows_data = $this->model->get_image_rows_data($id);
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.20
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -150,6 +150,9 @@ function bwg_addons() {
150
  }
151
 
152
  function bwg_ajax_frontend() {
 
 
 
153
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
154
  $page = WDWLibrary::get('action');
155
  if (($page != '') && ($page == 'GalleryBox')) {
@@ -295,6 +298,9 @@ function photo_gallery($id) {
295
  }
296
 
297
  function bwg_shortcode($params) {
 
 
 
298
  if (isset($params['id'])) {
299
  global $wpdb;
300
  $shortcode = $wpdb->get_var($wpdb->prepare("SELECT tagtext FROM " . $wpdb->prefix . "bwg_shortcode WHERE id='%d'", $params['id']));
@@ -1926,7 +1932,7 @@ function bwg_activate() {
1926
  ));
1927
  }
1928
  $version = WD_BWG_VERSION;
1929
- $new_version = '1.3.20';
1930
  if ($version && version_compare($version, $new_version, '<')) {
1931
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1932
  bwg_update($version);
@@ -1978,7 +1984,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1978
 
1979
  function bwg_update_hook() {
1980
  $version = WD_BWG_VERSION;
1981
- $new_version = '1.3.20';
1982
  if ($version && version_compare($version, $new_version, '<')) {
1983
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1984
  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.21
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
150
  }
151
 
152
  function bwg_ajax_frontend() {
153
+ if (function_exists('switch_to_locale') && function_exists('get_locale')) {
154
+ switch_to_locale(get_locale());
155
+ }
156
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
157
  $page = WDWLibrary::get('action');
158
  if (($page != '') && ($page == 'GalleryBox')) {
298
  }
299
 
300
  function bwg_shortcode($params) {
301
+ if ( is_admin() ) {
302
+ return;
303
+ }
304
  if (isset($params['id'])) {
305
  global $wpdb;
306
  $shortcode = $wpdb->get_var($wpdb->prepare("SELECT tagtext FROM " . $wpdb->prefix . "bwg_shortcode WHERE id='%d'", $params['id']));
1932
  ));
1933
  }
1934
  $version = WD_BWG_VERSION;
1935
+ $new_version = '1.3.21';
1936
  if ($version && version_compare($version, $new_version, '<')) {
1937
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1938
  bwg_update($version);
1984
 
1985
  function bwg_update_hook() {
1986
  $version = WD_BWG_VERSION;
1987
+ $new_version = '1.3.21';
1988
  if ($version && version_compare($version, $new_version, '<')) {
1989
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1990
  bwg_update($version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: album, image gallery, gallery, image, images, lightbox, photo, photo gallery, photos, responsive, thumbnail, widget
5
  Requires at least: 3.4
6
  Tested up to: 4.7
7
- Stable tag: 1.3.20
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -173,6 +173,10 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
173
 
174
  == Changelog ==
175
 
 
 
 
 
176
 
177
  = 1.3.20 =
178
  * Fixed: Redirect to url for masonry view.
4
  Tags: album, image gallery, gallery, image, images, lightbox, photo, photo gallery, photos, responsive, thumbnail, widget
5
  Requires at least: 3.4
6
  Tested up to: 4.7
7
+ Stable tag: 1.3.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
173
 
174
  == Changelog ==
175
 
176
+ = 1.3.21 =
177
+ * Fixed: Frontend content language in AJAX response on Wordpress 4.7.
178
+ * Fixed: Images check all in backend on Wordpress 4.7.
179
+ * Fixed: Item price with parameter.
180
 
181
  = 1.3.20 =
182
  * Fixed: Redirect to url for masonry view.