Version Description
- 12.04.2017 =
- NEW: Include PHP 7.2.0 in the warning created by NextGen Gallery 2.2.16
Download this release
Release Info
Developer | photocrati |
Plugin | NextGEN Gallery – WordPress Gallery Plugin |
Version | 2.2.18 |
Comparing to | |
See all releases |
Code changes from version 2.2.16 to 2.2.18
- changelog.txt +6 -0
- nggallery.php +7 -6
- readme.txt +7 -1
changelog.txt
CHANGED
@@ -1,6 +1,12 @@
|
|
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 |
|
1 |
NextGEN Gallery
|
2 |
by Imagely
|
3 |
|
4 |
+
= V2.2.18 - 12.04.2017 =
|
5 |
+
* NEW: Include PHP 7.2.0 in the warning created by NextGen Gallery 2.2.16
|
6 |
+
|
7 |
+
= V2.2.17 - 12.01.2017 =
|
8 |
+
* NEW: Include PHP 7.2-RCs in the warning created by NextGen Gallery 2.2.16
|
9 |
+
|
10 |
= V2.2.16 - 11.30.2017 =
|
11 |
* NEW: Display an admin warning and disable NextGen Gallery when PHP 7.1.12 or 7.0.26 are in use
|
12 |
|
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
|
@@ -141,17 +141,18 @@ class C_NextGEN_Bootstrap
|
|
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.
|
145 |
</div>
|
146 |
<?php
|
147 |
}
|
148 |
|
149 |
function __construct()
|
150 |
{
|
151 |
-
// PHP versions 7.1.12
|
152 |
// see: https://bugs.php.net/bug.php?id=75573
|
153 |
-
|
154 |
-
if (PHP_VERSION_ID === 70112 || PHP_VERSION_ID ===
|
|
|
155 |
add_action('admin_notices', array($this, 'php_version_incompatible'));
|
156 |
return;
|
157 |
}
|
@@ -660,7 +661,7 @@ class C_NextGEN_Bootstrap
|
|
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.
|
664 |
|
665 |
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
|
666 |
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.18
|
8 |
* Author: Imagely
|
9 |
* Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
|
10 |
* Author URI: https://www.imagely.com
|
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.0.26, 7.1.12, or 7.2.0. 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, 7.0.26, and the 7.2-RC come with a bug that NextGen Gallery cannot workaround
|
152 |
// see: https://bugs.php.net/bug.php?id=75573
|
153 |
+
// Additionally 7.2.0 has an issue with NextGen's activation
|
154 |
+
if (PHP_VERSION_ID === 70112 || PHP_VERSION_ID === 70026 || PHP_VERSION_ID === 70200)
|
155 |
+
{
|
156 |
add_action('admin_notices', array($this, 'php_version_incompatible'));
|
157 |
return;
|
158 |
}
|
661 |
define('NGG_PRODUCT_URL', path_join(str_replace("\\", '/', NGG_PLUGIN_URL), 'products'));
|
662 |
define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
|
663 |
define('NGG_PLUGIN_STARTED_AT', microtime());
|
664 |
+
define('NGG_PLUGIN_VERSION', '2.2.18');
|
665 |
|
666 |
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
|
667 |
define('NGG_SCRIPT_VERSION', (string)mt_rand(0, mt_getrandmax()));
|
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: 4.0.0
|
5 |
-
Stable tag: 2.2.
|
6 |
Tested up to: 4.9.1
|
7 |
License: GPLv2
|
8 |
|
@@ -187,6 +187,12 @@ For more information, feel free to visit the official website for the NextGEN Ga
|
|
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 |
|
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.18
|
6 |
Tested up to: 4.9.1
|
7 |
License: GPLv2
|
8 |
|
187 |
|
188 |
== Changelog ==
|
189 |
|
190 |
+
= V2.2.18 - 12.04.2017 =
|
191 |
+
* NEW: Include PHP 7.2.0 in the warning created by NextGen Gallery 2.2.16
|
192 |
+
|
193 |
+
= V2.2.17 - 12.01.2017 =
|
194 |
+
* NEW: Include PHP 7.2-RCs in the warning created by NextGen Gallery 2.2.16
|
195 |
+
|
196 |
= V2.2.16 - 11.30.2017 =
|
197 |
* NEW: Display an admin warning and disable NextGen Gallery when PHP 7.1.12 or 7.0.26 are in use
|
198 |
|