Version Description
- 11.30.2017 =
- NEW: Display an admin warning and disable NextGen Gallery when PHP 7.1.12 or 7.0.26 are in use
Download this release
Release Info
Developer | photocrati |
Plugin | NextGEN Gallery – WordPress Gallery Plugin |
Version | 2.2.16 |
Comparing to | |
See all releases |
Code changes from version 2.2.14 to 2.2.16
- changelog.txt +5 -2
- nggallery.php +18 -2
- readme.txt +7 -4
changelog.txt
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
NextGEN Gallery
|
2 |
by Imagely
|
3 |
|
|
|
|
|
|
|
4 |
= V2.2.14 - 09.18.2017 =
|
5 |
-
* NEW:
|
6 |
-
* Fixed:
|
7 |
|
8 |
= V2.2.12 - 08.01.2017 =
|
9 |
* Secured: Disabled Flash backend in plupload
|
1 |
NextGEN Gallery
|
2 |
by Imagely
|
3 |
|
4 |
+
= V2.2.16 - 11.30.2017 =
|
5 |
+
* NEW: Display an admin warning and disable NextGen Gallery when PHP 7.1.12 or 7.0.26 are in use
|
6 |
+
|
7 |
= V2.2.14 - 09.18.2017 =
|
8 |
+
* NEW: EXIF and IPTC metadata are copied to new images when generating thumbnails, watermarks, or new sizes
|
9 |
+
* Fixed: Metadata is read and preserved when "Resized images after upload" feature is enabled
|
10 |
|
11 |
= V2.2.12 - 08.01.2017 =
|
12 |
* Secured: Disabled Flash backend in plupload
|
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 18 million downloads.
|
7 |
-
* Version: 2.2.
|
8 |
* Author: Imagely
|
9 |
* Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
|
10 |
* Author URI: https://www.imagely.com
|
@@ -138,8 +138,24 @@ class C_NextGEN_Bootstrap
|
|
138 |
return $trace;
|
139 |
}
|
140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
function __construct()
|
142 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
set_exception_handler(__CLASS__.'::shutdown');
|
144 |
|
145 |
// We only load the plugin if we're outside of the activation request, loaded in an iframe
|
@@ -644,7 +660,7 @@ class C_NextGEN_Bootstrap
|
|
644 |
define('NGG_PRODUCT_URL', path_join(str_replace("\\", '/', NGG_PLUGIN_URL), 'products'));
|
645 |
define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
|
646 |
define('NGG_PLUGIN_STARTED_AT', microtime());
|
647 |
-
define('NGG_PLUGIN_VERSION', '2.2.
|
648 |
|
649 |
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
|
650 |
define('NGG_SCRIPT_VERSION', (string)mt_rand(0, mt_getrandmax()));
|
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 18 million downloads.
|
7 |
+
* Version: 2.2.16
|
8 |
* Author: Imagely
|
9 |
* Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
|
10 |
* Author URI: https://www.imagely.com
|
138 |
return $trace;
|
139 |
}
|
140 |
|
141 |
+
public function php_version_incompatible()
|
142 |
+
{ ?>
|
143 |
+
<div class="notice notice-error is-dismissible">
|
144 |
+
<p><?php print __('We’ve detected you are running PHP versions 7.1.12 or 7.0.26. These versions of PHP have a bug that breaks NextGEN Gallery and causes server crashes in certain conditions. To protect your site, NextGEN Gallery will not load. We recommend asking your host to roll back to an earlier version of PHP. For details on the PHP bug, see: <a target="_blank" href="https://bugs.php.net/bug.php?id=75573">bugs.php.net/bug.php?id=75573</a>', 'nggallery'); ?></p>
|
145 |
+
</div>
|
146 |
+
<?php
|
147 |
+
}
|
148 |
+
|
149 |
function __construct()
|
150 |
{
|
151 |
+
// PHP versions 7.1.12 and 7.0.26 come with a bug that NextGen Gallery cannot workaround
|
152 |
+
// see: https://bugs.php.net/bug.php?id=75573
|
153 |
+
$version = phpversion();
|
154 |
+
if (PHP_VERSION_ID === 70112 || PHP_VERSION_ID === 70026) {
|
155 |
+
add_action('admin_notices', array($this, 'php_version_incompatible'));
|
156 |
+
return;
|
157 |
+
}
|
158 |
+
|
159 |
set_exception_handler(__CLASS__.'::shutdown');
|
160 |
|
161 |
// We only load the plugin if we're outside of the activation request, loaded in an iframe
|
660 |
define('NGG_PRODUCT_URL', path_join(str_replace("\\", '/', NGG_PLUGIN_URL), 'products'));
|
661 |
define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
|
662 |
define('NGG_PLUGIN_STARTED_AT', microtime());
|
663 |
+
define('NGG_PLUGIN_VERSION', '2.2.16');
|
664 |
|
665 |
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
|
666 |
define('NGG_SCRIPT_VERSION', (string)mt_rand(0, mt_getrandmax()));
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
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: 4.0.0
|
5 |
-
Stable tag: 2.
|
6 |
-
Tested up to: 4.
|
7 |
License: GPLv2
|
8 |
|
9 |
The most popular WordPress gallery plugin and one of the most popular plugins of all time with over 18 million downloads.
|
@@ -187,9 +187,12 @@ For more information, feel free to visit the official website for the NextGEN Ga
|
|
187 |
|
188 |
== Changelog ==
|
189 |
|
|
|
|
|
|
|
190 |
= V2.2.14 - 09.18.2017 =
|
191 |
-
* NEW:
|
192 |
-
* Fixed:
|
193 |
|
194 |
= V2.2.12 - 08.01.2017 =
|
195 |
* Secured: Disabled Flash backend in plupload
|
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: 4.0.0
|
5 |
+
Stable tag: 2.2.16
|
6 |
+
Tested up to: 4.9.1
|
7 |
License: GPLv2
|
8 |
|
9 |
The most popular WordPress gallery plugin and one of the most popular plugins of all time with over 18 million downloads.
|
187 |
|
188 |
== Changelog ==
|
189 |
|
190 |
+
= V2.2.16 - 11.30.2017 =
|
191 |
+
* NEW: Display an admin warning and disable NextGen Gallery when PHP 7.1.12 or 7.0.26 are in use
|
192 |
+
|
193 |
= V2.2.14 - 09.18.2017 =
|
194 |
+
* NEW: EXIF and IPTC metadata are copied to new images when generating thumbnails, watermarks, or new sizes
|
195 |
+
* Fixed: Metadata is read and preserved when "Resized images after upload" feature is enabled
|
196 |
|
197 |
= V2.2.12 - 08.01.2017 =
|
198 |
* Secured: Disabled Flash backend in plupload
|