Version Description
- 08.30.2013 = Fixed: Match legacy behaviour when changing gallery path, i.e. don't move files
Download this release
Release Info
Developer | photocrati |
Plugin | NextGEN Gallery – WordPress Gallery Plugin |
Version | 2.0.17 |
Comparing to | |
See all releases |
Code changes from version 2.0.14 to 2.0.17
changelog.txt
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
NextGEN Gallery
|
2 |
by Photocrati Media
|
3 |
|
|
|
|
|
|
|
4 |
= V2.0.14 - 08.27.2013 =
|
5 |
* NEW: Added the ability to override thumbnail settings for NextGEN Basic Albums
|
6 |
* NEW: Shortcode Manager API, which ensures that shortcodes are outputted as intended
|
1 |
NextGEN Gallery
|
2 |
by Photocrati Media
|
3 |
|
4 |
+
= V2.0.17 - 08.30.2013 =
|
5 |
+
Fixed: Match legacy behaviour when changing gallery path, i.e. don't move files
|
6 |
+
|
7 |
= V2.0.14 - 08.27.2013 =
|
8 |
* NEW: Added the ability to override thumbnail settings for NextGEN Basic Albums
|
9 |
* NEW: Shortcode Manager API, which ensures that shortcodes are outputted as intended
|
nggallery.php
CHANGED
@@ -4,7 +4,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
|
|
4 |
/**
|
5 |
* Plugin Name: NextGEN Gallery by Photocrati
|
6 |
* Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 7 million downloads.
|
7 |
-
* Version: 2.0.
|
8 |
* Author: Photocrati Media
|
9 |
* Plugin URI: http://www.nextgen-gallery.com
|
10 |
* Author URI: http://www.photocrati.com
|
@@ -315,7 +315,7 @@ class C_NextGEN_Bootstrap
|
|
315 |
define('NEXTGEN_GALLERY_MODULE_URL', path_join(NEXTGEN_GALLERY_PRODUCT_URL, 'photocrati_nextgen/modules'));
|
316 |
define('NEXTGEN_GALLERY_PLUGIN_CLASS', path_join(NEXTGEN_GALLERY_PLUGIN_DIR, 'module.NEXTGEN_GALLERY_PLUGIN.php'));
|
317 |
define('NEXTGEN_GALLERY_PLUGIN_STARTED_AT', microtime());
|
318 |
-
define('NEXTGEN_GALLERY_PLUGIN_VERSION', '2.0.
|
319 |
}
|
320 |
|
321 |
|
4 |
/**
|
5 |
* Plugin Name: NextGEN Gallery by Photocrati
|
6 |
* Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 7 million downloads.
|
7 |
+
* Version: 2.0.17
|
8 |
* Author: Photocrati Media
|
9 |
* Plugin URI: http://www.nextgen-gallery.com
|
10 |
* Author URI: http://www.photocrati.com
|
315 |
define('NEXTGEN_GALLERY_MODULE_URL', path_join(NEXTGEN_GALLERY_PRODUCT_URL, 'photocrati_nextgen/modules'));
|
316 |
define('NEXTGEN_GALLERY_PLUGIN_CLASS', path_join(NEXTGEN_GALLERY_PLUGIN_DIR, 'module.NEXTGEN_GALLERY_PLUGIN.php'));
|
317 |
define('NEXTGEN_GALLERY_PLUGIN_STARTED_AT', microtime());
|
318 |
+
define('NEXTGEN_GALLERY_PLUGIN_VERSION', '2.0.17');
|
319 |
}
|
320 |
|
321 |
|
products/photocrati_nextgen/modules/nextgen_other_options/adapter.image_options_form.php
CHANGED
@@ -134,30 +134,32 @@ class A_Image_Options_Form extends Mixin
|
|
134 |
$fs = $this->get_registry()->get_utility('I_Fs');
|
135 |
$original_dir = $fs->get_abspath($this->object->get_model()->get('gallerypath'));
|
136 |
$new_dir = $fs->get_abspath($image_options['gallerypath']);
|
137 |
-
|
138 |
-
|
139 |
-
//
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
|
|
|
|
161 |
}
|
162 |
elseif (isset($image_options['gallerypath'])) {
|
163 |
unset($image_options['gallerypath']);
|
134 |
$fs = $this->get_registry()->get_utility('I_Fs');
|
135 |
$original_dir = $fs->get_abspath($this->object->get_model()->get('gallerypath'));
|
136 |
$new_dir = $fs->get_abspath($image_options['gallerypath']);
|
137 |
+
$image_options['gallerypath'] = $fs->add_trailing_slash($image_options['gallerypath']);
|
138 |
+
|
139 |
+
// Note: the below file move is disabled because it's quite unreliable as it doesn't perform any checks
|
140 |
+
// For instance changing gallery path from /wp-content to /wp-content/gallery would attempt a recursive copy and then delete ALL files under wp-content, which would be disastreus
|
141 |
+
# // If the gallery path has changed...
|
142 |
+
# if ($original_dir != $new_dir) {
|
143 |
+
|
144 |
+
# // Try creating the new directory
|
145 |
+
# if ($this->object->_create_gallery_storage_dir($new_dir) AND is_writable($new_dir)) {
|
146 |
+
|
147 |
+
# // Try moving files
|
148 |
+
# $this->object->recursive_copy($original_dir, $new_dir);
|
149 |
+
# $this->object->recursive_delete($original_dir);
|
150 |
+
|
151 |
+
# // Update gallery paths
|
152 |
+
# $mapper = $this->get_registry()->get_utility('I_Gallery_Mapper');
|
153 |
+
# foreach ($mapper->find_all() as $gallery) {
|
154 |
+
# $gallery->path = $image_options['gallerypath'] . $gallery->name;
|
155 |
+
# $mapper->save($gallery);
|
156 |
+
# }
|
157 |
+
# }
|
158 |
+
# else {
|
159 |
+
# $this->get_model()->add_error("Unable to change gallery path. Insufficient filesystem permissions");
|
160 |
+
# $save = FALSE;
|
161 |
+
# }
|
162 |
+
# }
|
163 |
}
|
164 |
elseif (isset($image_options['gallerypath'])) {
|
165 |
unset($image_options['gallerypath']);
|
products/photocrati_nextgen/product.photocrati_nextgen.php
CHANGED
@@ -52,7 +52,7 @@ class P_Photocrati_NextGen extends C_Base_Product
|
|
52 |
'photocrati-nextgen',
|
53 |
'Photocrati NextGen',
|
54 |
'Photocrati NextGen',
|
55 |
-
'2.0.
|
56 |
'http://www.nextgen-gallery.com',
|
57 |
'Photocrati Media',
|
58 |
'http://www.photocrati.com'
|
52 |
'photocrati-nextgen',
|
53 |
'Photocrati NextGen',
|
54 |
'Photocrati NextGen',
|
55 |
+
'2.0.17',
|
56 |
'http://www.nextgen-gallery.com',
|
57 |
'Photocrati Media',
|
58 |
'http://www.photocrati.com'
|
readme.txt
CHANGED
@@ -195,6 +195,9 @@ For more information, feel free to visit the official website for the NextGEN Ga
|
|
195 |
|
196 |
== Changelog ==
|
197 |
|
|
|
|
|
|
|
198 |
= V2.0.14 - 08.27.2013 =
|
199 |
* NEW: Added the ability to override thumbnail settings for NextGEN Basic Albums
|
200 |
* NEW: Shortcode Manager API, which ensures that shortcodes are outputted as intended
|
195 |
|
196 |
== Changelog ==
|
197 |
|
198 |
+
= V2.0.17 - 08.30.2013 =
|
199 |
+
Fixed: Match legacy behaviour when changing gallery path, i.e. don't move files
|
200 |
+
|
201 |
= V2.0.14 - 08.27.2013 =
|
202 |
* NEW: Added the ability to override thumbnail settings for NextGEN Basic Albums
|
203 |
* NEW: Shortcode Manager API, which ensures that shortcodes are outputted as intended
|