Version Description
- Fixed: Bug on old versions of PHP
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.3.52 |
Comparing to | |
See all releases |
Code changes from version 1.3.51 to 1.3.52
- framework/WDWLibrary.php +9 -0
- photo-gallery.php +10 -7
- readme.txt +4 -1
framework/WDWLibrary.php
CHANGED
@@ -1501,4 +1501,13 @@ class WDWLibrary {
|
|
1501 |
}
|
1502 |
return $meta;
|
1503 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1504 |
}
|
1501 |
}
|
1502 |
return $meta;
|
1503 |
}
|
1504 |
+
|
1505 |
+
/**
|
1506 |
+
* Validate integer value.
|
1507 |
+
*
|
1508 |
+
* @param $value
|
1509 |
+
*/
|
1510 |
+
public static function validate_integers(&$value) {
|
1511 |
+
$value = (int)$value;
|
1512 |
+
}
|
1513 |
}
|
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: Photo Gallery Team
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -536,13 +536,16 @@ add_action('wp_ajax_BWGShortcode', 'bwg_ajax');
|
|
536 |
add_filter('mce_external_plugins', 'bwg_register');
|
537 |
add_filter('mce_buttons', 'bwg_add_button', 0);
|
538 |
|
539 |
-
|
540 |
-
if (class_exists('WP_Widget')) {
|
541 |
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
542 |
require_once(WD_BWG_DIR . '/admin/controllers/BWGControllerWidget.php');
|
543 |
-
|
544 |
require_once(WD_BWG_DIR . '/admin/controllers/BWGControllerWidgetSlideshow.php');
|
545 |
-
|
|
|
|
|
|
|
|
|
546 |
}
|
547 |
// Intro tour
|
548 |
function bwg_pointer_init() {
|
@@ -1701,7 +1704,7 @@ function bwg_activate() {
|
|
1701 |
));
|
1702 |
}
|
1703 |
$version = get_option('wd_bwg_version');
|
1704 |
-
$new_version = '1.3.
|
1705 |
if ($version && version_compare($version, $new_version, '<')) {
|
1706 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1707 |
bwg_update($version);
|
@@ -1753,7 +1756,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
1753 |
|
1754 |
function bwg_update_hook() {
|
1755 |
$version = get_option('wd_bwg_version');
|
1756 |
-
$new_version = '1.3.
|
1757 |
if ($version && version_compare($version, $new_version, '<')) {
|
1758 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1759 |
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.52
|
8 |
* Author: Photo Gallery Team
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
536 |
add_filter('mce_external_plugins', 'bwg_register');
|
537 |
add_filter('mce_buttons', 'bwg_add_button', 0);
|
538 |
|
539 |
+
function bwg_register_widgets() {
|
|
|
540 |
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
541 |
require_once(WD_BWG_DIR . '/admin/controllers/BWGControllerWidget.php');
|
542 |
+
register_widget("BWGControllerWidget");
|
543 |
require_once(WD_BWG_DIR . '/admin/controllers/BWGControllerWidgetSlideshow.php');
|
544 |
+
register_widget("BWGControllerWidgetSlideshow");
|
545 |
+
}
|
546 |
+
// Photo Gallery Widget.
|
547 |
+
if (class_exists('WP_Widget')) {
|
548 |
+
add_action('widgets_init', 'bwg_register_widgets');
|
549 |
}
|
550 |
// Intro tour
|
551 |
function bwg_pointer_init() {
|
1704 |
));
|
1705 |
}
|
1706 |
$version = get_option('wd_bwg_version');
|
1707 |
+
$new_version = '1.3.52';
|
1708 |
if ($version && version_compare($version, $new_version, '<')) {
|
1709 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1710 |
bwg_update($version);
|
1756 |
|
1757 |
function bwg_update_hook() {
|
1758 |
$version = get_option('wd_bwg_version');
|
1759 |
+
$new_version = '1.3.52';
|
1760 |
if ($version && version_compare($version, $new_version, '<')) {
|
1761 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1762 |
bwg_update($version);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
|
4 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -188,6 +188,9 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
|
|
188 |
|
189 |
== Changelog ==
|
190 |
|
|
|
|
|
|
|
191 |
= 1.3.51 =
|
192 |
* Fixed: Security issue
|
193 |
|
4 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 1.3.52
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
188 |
|
189 |
== Changelog ==
|
190 |
|
191 |
+
= 1.3.52 =
|
192 |
+
* Fixed: Bug on old versions of PHP
|
193 |
+
|
194 |
= 1.3.51 =
|
195 |
* Fixed: Security issue
|
196 |
|