Version Description
- 08.23.2021
- Fixed: A warning was generated on every request for users of PHP 5.6
Download this release
Release Info
Developer | photocrati |
Plugin | NextGEN Gallery – WordPress Gallery Plugin |
Version | 3.15 |
Comparing to | |
See all releases |
Code changes from version 3.14 to 3.15
changelog.txt
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
NextGEN Gallery
|
2 |
by Imagely
|
3 |
|
|
|
|
|
|
|
4 |
= V3.14 - 08.18.2021
|
5 |
* NEW: Added support for unanimated WebP images
|
6 |
* Fixed: PHP warning was generated when enqueueing frontend resources
|
1 |
NextGEN Gallery
|
2 |
by Imagely
|
3 |
|
4 |
+
= V3.15 - 08.23.2021
|
5 |
+
* Fixed: A warning was generated on every request for users of PHP 5.6
|
6 |
+
|
7 |
= V3.14 - 08.18.2021
|
8 |
* NEW: Added support for unanimated WebP images
|
9 |
* Fixed: PHP warning was generated when enqueueing frontend resources
|
nggallery.php
CHANGED
@@ -4,7 +4,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
|
|
4 |
/**
|
5 |
* Plugin Name: NextGEN Gallery
|
6 |
* Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 30 million downloads.
|
7 |
-
* Version: 3.
|
8 |
* Author: Imagely
|
9 |
* Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
|
10 |
* Author URI: https://www.imagely.com
|
@@ -712,7 +712,7 @@ class C_NextGEN_Bootstrap
|
|
712 |
define('NGG_PRODUCT_URL', path_join(str_replace("\\" , '/', NGG_PLUGIN_URL), 'products'));
|
713 |
define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
|
714 |
define('NGG_PLUGIN_STARTED_AT', microtime());
|
715 |
-
define('NGG_PLUGIN_VERSION', '3.
|
716 |
|
717 |
define(
|
718 |
'NGG_SCRIPT_VERSION',
|
@@ -779,12 +779,12 @@ class C_NextGEN_Bootstrap
|
|
779 |
}
|
780 |
|
781 |
// Define what file extensions and mime are accepted, with optional WebP
|
782 |
-
$default_extensions_list =
|
783 |
-
$default_mime_list =
|
784 |
if (function_exists('imagewebp'))
|
785 |
{
|
786 |
-
$default_extensions_list
|
787 |
-
$default_mime_list
|
788 |
}
|
789 |
|
790 |
if (!defined('NGG_DEFAULT_ALLOWED_FILE_TYPES'))
|
@@ -792,6 +792,14 @@ class C_NextGEN_Bootstrap
|
|
792 |
|
793 |
if (!defined('NGG_DEFAULT_ALLOWED_MIME_TYPES'))
|
794 |
define('NGG_DEFAULT_ALLOWED_MIME_TYPES', $default_mime_list);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
795 |
}
|
796 |
|
797 |
/**
|
4 |
/**
|
5 |
* Plugin Name: NextGEN Gallery
|
6 |
* Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 30 million downloads.
|
7 |
+
* Version: 3.15
|
8 |
* Author: Imagely
|
9 |
* Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
|
10 |
* Author URI: https://www.imagely.com
|
712 |
define('NGG_PRODUCT_URL', path_join(str_replace("\\" , '/', NGG_PLUGIN_URL), 'products'));
|
713 |
define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
|
714 |
define('NGG_PLUGIN_STARTED_AT', microtime());
|
715 |
+
define('NGG_PLUGIN_VERSION', '3.15');
|
716 |
|
717 |
define(
|
718 |
'NGG_SCRIPT_VERSION',
|
779 |
}
|
780 |
|
781 |
// Define what file extensions and mime are accepted, with optional WebP
|
782 |
+
$default_extensions_list = 'jpeg,jpg,png,gif';
|
783 |
+
$default_mime_list = 'image/gif,image/jpg,image/jpeg,image/pjpeg,image/png';
|
784 |
if (function_exists('imagewebp'))
|
785 |
{
|
786 |
+
$default_extensions_list .= ',webp';
|
787 |
+
$default_mime_list .= ',image/webp';
|
788 |
}
|
789 |
|
790 |
if (!defined('NGG_DEFAULT_ALLOWED_FILE_TYPES'))
|
792 |
|
793 |
if (!defined('NGG_DEFAULT_ALLOWED_MIME_TYPES'))
|
794 |
define('NGG_DEFAULT_ALLOWED_MIME_TYPES', $default_mime_list);
|
795 |
+
|
796 |
+
add_filter('ngg_allowed_file_types', function($string) {
|
797 |
+
return explode(',', $string);
|
798 |
+
}, -10);
|
799 |
+
|
800 |
+
add_filter('ngg_allowed_mime_types', function($string) {
|
801 |
+
return explode(',', $string);
|
802 |
+
}, -10);
|
803 |
}
|
804 |
|
805 |
/**
|
products/photocrati_nextgen/modules/nextgen_addgallery_page/package.module.nextgen_addgallery_page.php
CHANGED
@@ -425,7 +425,8 @@ class A_Upload_Images_Form extends Mixin
|
|
425 |
}
|
426 |
function get_uppy_core_settings()
|
427 |
{
|
428 |
-
|
|
|
429 |
}
|
430 |
function get_uppy_dashboard_settings()
|
431 |
{
|
425 |
}
|
426 |
function get_uppy_core_settings()
|
427 |
{
|
428 |
+
$mime = apply_filters('ngg_allowed_mime_types', NGG_DEFAULT_ALLOWED_MIME_TYPES);
|
429 |
+
return apply_filters('ngg_uppy_core_settings', ['locale' => $this->object->get_uppy_locale(), 'restrictions' => ['maxfileSize' => wp_max_upload_size(), 'allowedFileTypes' => $this->can_upload_zips() ? array_merge($mime, ['.zip']) : get_allowed_mime_types()]]);
|
430 |
}
|
431 |
function get_uppy_dashboard_settings()
|
432 |
{
|
products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php
CHANGED
@@ -2809,15 +2809,16 @@ class C_Gallery_Storage extends C_Component
|
|
2809 |
if (!$filename && isset($_FILES['file']) && $_FILES['file']['error'] == 0) {
|
2810 |
$filename = $_FILES['file']['tmp_name'];
|
2811 |
}
|
|
|
2812 |
// If we can, we'll verify the mime type
|
2813 |
if (function_exists('exif_imagetype')) {
|
2814 |
if (($image_type = @exif_imagetype($filename)) !== FALSE) {
|
2815 |
-
$retval = in_array(image_type_to_mime_type($image_type),
|
2816 |
}
|
2817 |
} else {
|
2818 |
$file_info = @getimagesize($filename);
|
2819 |
if (isset($file_info[2])) {
|
2820 |
-
$retval = in_array(image_type_to_mime_type($file_info[2]),
|
2821 |
}
|
2822 |
}
|
2823 |
return $retval;
|
2809 |
if (!$filename && isset($_FILES['file']) && $_FILES['file']['error'] == 0) {
|
2810 |
$filename = $_FILES['file']['tmp_name'];
|
2811 |
}
|
2812 |
+
$allowed_mime = apply_filters('ngg_allowed_mime_types', NGG_DEFAULT_ALLOWED_MIME_TYPES);
|
2813 |
// If we can, we'll verify the mime type
|
2814 |
if (function_exists('exif_imagetype')) {
|
2815 |
if (($image_type = @exif_imagetype($filename)) !== FALSE) {
|
2816 |
+
$retval = in_array(image_type_to_mime_type($image_type), $allowed_mime);
|
2817 |
}
|
2818 |
} else {
|
2819 |
$file_info = @getimagesize($filename);
|
2820 |
if (isset($file_info[2])) {
|
2821 |
+
$retval = in_array(image_type_to_mime_type($file_info[2]), $allowed_mime);
|
2822 |
}
|
2823 |
}
|
2824 |
return $retval;
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: photocrati, imagely
|
3 |
Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark
|
4 |
Requires at least: 5.5.4
|
5 |
-
Stable tag: 3.
|
6 |
Tested up to: 5.8
|
7 |
License: GPLv3
|
8 |
Requires PHP: 5.6
|
@@ -179,6 +179,9 @@ For more information, feel free to visit the official website for the NextGEN Ga
|
|
179 |
|
180 |
== Changelog ==
|
181 |
|
|
|
|
|
|
|
182 |
= V3.14 - 08.18.2021
|
183 |
* NEW: Added support for unanimated WebP images
|
184 |
* Fixed: PHP warning was generated when enqueueing frontend resources
|
2 |
Contributors: photocrati, imagely
|
3 |
Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark
|
4 |
Requires at least: 5.5.4
|
5 |
+
Stable tag: 3.15
|
6 |
Tested up to: 5.8
|
7 |
License: GPLv3
|
8 |
Requires PHP: 5.6
|
179 |
|
180 |
== Changelog ==
|
181 |
|
182 |
+
= V3.15 - 08.23.2021
|
183 |
+
* Fixed: A warning was generated on every request for users of PHP 5.6
|
184 |
+
|
185 |
= V3.14 - 08.18.2021
|
186 |
* NEW: Added support for unanimated WebP images
|
187 |
* Fixed: PHP warning was generated when enqueueing frontend resources
|