Version Description
- Fixed: Album view bug.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.2.69 |
Comparing to | |
See all releases |
Code changes from version 1.2.68 to 1.2.69
frontend/models/BWGModelAlbum_compact_preview.php
CHANGED
@@ -93,11 +93,11 @@ class BWGModelAlbum_compact_preview {
|
|
93 |
$sort_by = 'image.`' . $sort_by . '`';
|
94 |
}
|
95 |
if (isset($_REQUEST['bwg_tag_id_bwg_album_compact_' . $bwg]) && $_REQUEST['bwg_tag_id_bwg_album_compact_' . $bwg]) {
|
96 |
-
$row = $wpdb->get_results($wpdb->prepare('SELECT image.* FROM ' . $wpdb->prefix . 'bwg_image
|
97 |
(SELECT GROUP_CONCAT( tag_id SEPARATOR ",") AS tags, image_id FROM ' . $wpdb->prefix . 'bwg_image_tag WHERE gallery_id="' . $id . '" GROUP BY image_id) AS tag ON image.id=tag.image_id WHERE image.published=1 ' . $where . ' AND CONCAT(",", tag.tags, ",") REGEXP ",('.implode("|",$_REQUEST['bwg_tag_id_bwg_album_compact_' . $bwg]).')," AND image.gallery_id="%d" ORDER BY ' . $sort_by . ' ' . $sort_direction . ' ' . $limit_str,$id));
|
98 |
}
|
99 |
else {
|
100 |
-
$row = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_image WHERE published=1 ' . $where . ' AND gallery_id="%d" ORDER BY ' . $sort_by . ' ' . $sort_direction . $limit_str, $id));
|
101 |
}
|
102 |
return $row;
|
103 |
}
|
93 |
$sort_by = 'image.`' . $sort_by . '`';
|
94 |
}
|
95 |
if (isset($_REQUEST['bwg_tag_id_bwg_album_compact_' . $bwg]) && $_REQUEST['bwg_tag_id_bwg_album_compact_' . $bwg]) {
|
96 |
+
$row = $wpdb->get_results($wpdb->prepare('SELECT image.* FROM ' . $wpdb->prefix . 'bwg_image AS image INNER JOIN
|
97 |
(SELECT GROUP_CONCAT( tag_id SEPARATOR ",") AS tags, image_id FROM ' . $wpdb->prefix . 'bwg_image_tag WHERE gallery_id="' . $id . '" GROUP BY image_id) AS tag ON image.id=tag.image_id WHERE image.published=1 ' . $where . ' AND CONCAT(",", tag.tags, ",") REGEXP ",('.implode("|",$_REQUEST['bwg_tag_id_bwg_album_compact_' . $bwg]).')," AND image.gallery_id="%d" ORDER BY ' . $sort_by . ' ' . $sort_direction . ' ' . $limit_str,$id));
|
98 |
}
|
99 |
else {
|
100 |
+
$row = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_image AS image WHERE published=1 ' . $where . ' AND gallery_id="%d" ORDER BY ' . $sort_by . ' ' . $sort_direction . $limit_str, $id));
|
101 |
}
|
102 |
return $row;
|
103 |
}
|
frontend/models/BWGModelAlbum_extended_preview.php
CHANGED
@@ -79,14 +79,14 @@ class BWGModelAlbum_extended_preview {
|
|
79 |
$sort_by = 'RAND()';
|
80 |
}
|
81 |
else {
|
82 |
-
$sort_by = '
|
83 |
}
|
84 |
if (isset($_REQUEST['bwg_tag_id_bwg_album_extended_' . $bwg]) && $_REQUEST['bwg_tag_id_bwg_album_extended_' . $bwg]) {
|
85 |
$row = $wpdb->get_results($wpdb->prepare('SELECT image.* FROM ' . $wpdb->prefix . 'bwg_image as image INNER JOIN
|
86 |
-
(SELECT GROUP_CONCAT( tag_id SEPARATOR ",") AS tags, image_id FROM ' . $wpdb->prefix . 'bwg_image_tag WHERE gallery_id="' . $id . '" GROUP BY image_id) AS tag ON image.id=tag.image_id WHERE image.published=1 ' . $where . ' AND CONCAT(",", tag.tags, ",") REGEXP ",('.implode("|",$_REQUEST['bwg_tag_id_bwg_album_extended_' . $bwg]).')," AND image.gallery_id="%d" ORDER BY
|
87 |
}
|
88 |
else {
|
89 |
-
$row = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_image WHERE published=1 ' . $where . ' AND gallery_id="%d" ORDER BY ' . $sort_by . ' ' . $sort_direction . $limit_str, $id));
|
90 |
}
|
91 |
return $row;
|
92 |
}
|
79 |
$sort_by = 'RAND()';
|
80 |
}
|
81 |
else {
|
82 |
+
$sort_by = 'image.`' . $sort_by . '`';
|
83 |
}
|
84 |
if (isset($_REQUEST['bwg_tag_id_bwg_album_extended_' . $bwg]) && $_REQUEST['bwg_tag_id_bwg_album_extended_' . $bwg]) {
|
85 |
$row = $wpdb->get_results($wpdb->prepare('SELECT image.* FROM ' . $wpdb->prefix . 'bwg_image as image INNER JOIN
|
86 |
+
(SELECT GROUP_CONCAT( tag_id SEPARATOR ",") AS tags, image_id FROM ' . $wpdb->prefix . 'bwg_image_tag WHERE gallery_id="' . $id . '" GROUP BY image_id) AS tag ON image.id=tag.image_id WHERE image.published=1 ' . $where . ' AND CONCAT(",", tag.tags, ",") REGEXP ",('.implode("|",$_REQUEST['bwg_tag_id_bwg_album_extended_' . $bwg]).')," AND image.gallery_id="%d" ORDER BY ' . $sort_by . ' ' . $sort_direction . ' ' . $limit_str, $id));
|
87 |
}
|
88 |
else {
|
89 |
+
$row = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_image as image WHERE published=1 ' . $where . ' AND gallery_id="%d" ORDER BY ' . $sort_by . ' ' . $sort_direction . $limit_str, $id));
|
90 |
}
|
91 |
return $row;
|
92 |
}
|
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.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -2339,7 +2339,7 @@ function bwg_activate() {
|
|
2339 |
));
|
2340 |
}
|
2341 |
$version = get_option("wd_bwg_version");
|
2342 |
-
$new_version = '1.2.
|
2343 |
if ($version && version_compare($version, $new_version, '<')) {
|
2344 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2345 |
bwg_update($version);
|
@@ -2387,7 +2387,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
2387 |
|
2388 |
function bwg_update_hook() {
|
2389 |
$version = get_option("wd_bwg_version");
|
2390 |
-
$new_version = '1.2.
|
2391 |
if ($version && version_compare($version, $new_version, '<')) {
|
2392 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2393 |
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.69
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
2339 |
));
|
2340 |
}
|
2341 |
$version = get_option("wd_bwg_version");
|
2342 |
+
$new_version = '1.2.69';
|
2343 |
if ($version && version_compare($version, $new_version, '<')) {
|
2344 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2345 |
bwg_update($version);
|
2387 |
|
2388 |
function bwg_update_hook() {
|
2389 |
$version = get_option("wd_bwg_version");
|
2390 |
+
$new_version = '1.2.69';
|
2391 |
if ($version && version_compare($version, $new_version, '<')) {
|
2392 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2393 |
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, facebook integration, instagram feed, Flickr, Dailymotion
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -97,6 +97,7 @@ Upgrade to [WordPress Photo Gallery Pro](https://web-dorado.com/products/wordpre
|
|
97 |
* Mosaic gallery View
|
98 |
* Blog Style View.
|
99 |
* Masonry Album view
|
|
|
100 |
* Slideshow/Lightbox 15 effects.
|
101 |
* Editable themes.
|
102 |
* Instagram Integration.
|
@@ -215,6 +216,9 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
|
|
215 |
|
216 |
== Changelog ==
|
217 |
|
|
|
|
|
|
|
218 |
= 1.2.68 =
|
219 |
* Fixed: Random ordering.
|
220 |
* Changed: Pause embed video on image change.
|
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, facebook integration, instagram feed, Flickr, Dailymotion
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 1.2.69
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
97 |
* Mosaic gallery View
|
98 |
* Blog Style View.
|
99 |
* Masonry Album view
|
100 |
+
* Pro lightbox
|
101 |
* Slideshow/Lightbox 15 effects.
|
102 |
* Editable themes.
|
103 |
* Instagram Integration.
|
216 |
|
217 |
== Changelog ==
|
218 |
|
219 |
+
= 1.2.69 =
|
220 |
+
* Fixed: Album view bug.
|
221 |
+
|
222 |
= 1.2.68 =
|
223 |
* Fixed: Random ordering.
|
224 |
* Changed: Pause embed video on image change.
|