Version Description
- Fixed: Filemanager.
- Fixed: Saving gallery autoupdate interval.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.3.33 |
Comparing to | |
See all releases |
Code changes from version 1.3.32 to 1.3.33
- admin/controllers/BWGControllerOptions_bwg.php +1 -1
- filemanager/view.php +3 -3
- photo-gallery.php +5 -5
- readme.txt +5 -1
admin/controllers/BWGControllerOptions_bwg.php
CHANGED
@@ -81,7 +81,7 @@ class BWGControllerOptions_bwg {
|
|
81 |
if ($name == 'autoupdate_interval') {
|
82 |
$autoupdate_interval = (isset($_POST['autoupdate_interval_hour']) && isset($_POST['autoupdate_interval_min']) ? ((int) $_POST['autoupdate_interval_hour'] * 60 + (int) $_POST['autoupdate_interval_min']) : null);
|
83 |
/*minimum autoupdate interval is 1 min*/
|
84 |
-
$autoupdate_interval = isset($autoupdate_interval) && $autoupdate_interval >= 1 ? $autoupdate_interval : 1;
|
85 |
}
|
86 |
else if ($name != 'images_directory' && isset($_POST[$name])) {
|
87 |
$row->$name = esc_html(stripslashes($_POST[$name]));
|
81 |
if ($name == 'autoupdate_interval') {
|
82 |
$autoupdate_interval = (isset($_POST['autoupdate_interval_hour']) && isset($_POST['autoupdate_interval_min']) ? ((int) $_POST['autoupdate_interval_hour'] * 60 + (int) $_POST['autoupdate_interval_min']) : null);
|
83 |
/*minimum autoupdate interval is 1 min*/
|
84 |
+
$row->autoupdate_interval = isset($autoupdate_interval) && $autoupdate_interval >= 1 ? $autoupdate_interval : 1;
|
85 |
}
|
86 |
else if ($name != 'images_directory' && isset($_POST[$name])) {
|
87 |
$row->$name = esc_html(stripslashes($_POST[$name]));
|
filemanager/view.php
CHANGED
@@ -82,9 +82,9 @@ class FilemanagerView {
|
|
82 |
var callback = "<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>";
|
83 |
var sortBy = "<?php echo $sort_by; ?>";
|
84 |
var sortOrder = "<?php echo $sort_order; ?>";
|
85 |
-
var wdb_all_files = <?php echo isset($file_manager_data["all_files"]) ? json_encode($file_manager_data["all_files"]
|
86 |
-
var media_library_files = <?php echo isset($file_manager_data["media_library_files_all"]) ? json_encode($file_manager_data["media_library_files_all"]
|
87 |
-
var element_load_count = <?php echo isset($file_manager_data["element_load_count"]) ? json_encode($file_manager_data["element_load_count"]
|
88 |
</script>
|
89 |
<script src="<?php echo WD_BWG_URL; ?>/filemanager/js/default.js?ver=<?php echo wd_bwg_version(); ?>"></script>
|
90 |
<link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default.css?ver=<?php echo wd_bwg_version(); ?>" type="text/css" rel="stylesheet">
|
82 |
var callback = "<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>";
|
83 |
var sortBy = "<?php echo $sort_by; ?>";
|
84 |
var sortOrder = "<?php echo $sort_order; ?>";
|
85 |
+
var wdb_all_files = <?php echo isset($file_manager_data["all_files"]) ? json_encode($file_manager_data["all_files"]) : ""; ?>;
|
86 |
+
var media_library_files = <?php echo isset($file_manager_data["media_library_files_all"]) ? json_encode($file_manager_data["media_library_files_all"]) : ""; ?>;
|
87 |
+
var element_load_count = <?php echo isset($file_manager_data["element_load_count"]) ? json_encode($file_manager_data["element_load_count"]) : ""; ?>;
|
88 |
</script>
|
89 |
<script src="<?php echo WD_BWG_URL; ?>/filemanager/js/default.js?ver=<?php echo wd_bwg_version(); ?>"></script>
|
90 |
<link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default.css?ver=<?php echo wd_bwg_version(); ?>" type="text/css" rel="stylesheet">
|
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.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -521,8 +521,8 @@ function bwg_shortcode($params) {
|
|
521 |
}
|
522 |
ob_start();
|
523 |
bwg_front_end($params);
|
524 |
-
|
525 |
-
return ob_get_clean();
|
526 |
}
|
527 |
add_shortcode('Best_Wordpress_Gallery', 'bwg_shortcode');
|
528 |
|
@@ -1617,7 +1617,7 @@ function bwg_activate() {
|
|
1617 |
));
|
1618 |
}
|
1619 |
$version = get_option('wd_bwg_version');
|
1620 |
-
$new_version = '1.3.
|
1621 |
if ($version && version_compare($version, $new_version, '<')) {
|
1622 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1623 |
bwg_update($version);
|
@@ -1669,7 +1669,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
1669 |
|
1670 |
function bwg_update_hook() {
|
1671 |
$version = get_option('wd_bwg_version');
|
1672 |
-
$new_version = '1.3.
|
1673 |
if ($version && version_compare($version, $new_version, '<')) {
|
1674 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1675 |
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.33
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
521 |
}
|
522 |
ob_start();
|
523 |
bwg_front_end($params);
|
524 |
+
return str_replace(array("\r\n", "\n", "\r"), '', ob_get_clean());
|
525 |
+
// return ob_get_clean();
|
526 |
}
|
527 |
add_shortcode('Best_Wordpress_Gallery', 'bwg_shortcode');
|
528 |
|
1617 |
));
|
1618 |
}
|
1619 |
$version = get_option('wd_bwg_version');
|
1620 |
+
$new_version = '1.3.33';
|
1621 |
if ($version && version_compare($version, $new_version, '<')) {
|
1622 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1623 |
bwg_update($version);
|
1669 |
|
1670 |
function bwg_update_hook() {
|
1671 |
$version = get_option('wd_bwg_version');
|
1672 |
+
$new_version = '1.3.33';
|
1673 |
if ($version && version_compare($version, $new_version, '<')) {
|
1674 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1675 |
bwg_update($version);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
|
4 |
Tags: content gallery, gallery, gallery image, image gallery, images gallery, lightbox gallery, media gallery, photo gallery, responsive gallery, thumbnail gallery, wordpress gallery, youtube gallery
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -175,6 +175,10 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
|
|
175 |
|
176 |
== Changelog ==
|
177 |
|
|
|
|
|
|
|
|
|
178 |
= 1.3.32 =
|
179 |
* Fixed: Filemanager.
|
180 |
* Fixed: JPEG quality on image reset.
|
4 |
Tags: content gallery, gallery, gallery image, image gallery, images gallery, lightbox gallery, media gallery, photo gallery, responsive gallery, thumbnail gallery, wordpress gallery, youtube gallery
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.3.33
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
175 |
|
176 |
== Changelog ==
|
177 |
|
178 |
+
= 1.3.33 =
|
179 |
+
* Fixed: Filemanager.
|
180 |
+
* Fixed: Saving gallery autoupdate interval.
|
181 |
+
|
182 |
= 1.3.32 =
|
183 |
* Fixed: Filemanager.
|
184 |
* Fixed: JPEG quality on image reset.
|