Version Description
Better AJAX response error handling in the JavaScript. This should fix a long-standing bug in this plugin. Props Hew Sutton.
Download this release
Release Info
Developer | Viper007Bond |
Plugin | Regenerate Thumbnails |
Version | 2.2.4 |
Comparing to | |
See all releases |
Code changes from version 2.2.3 to 2.2.4
- readme.txt +7 -0
- regenerate-thumbnails.php +8 -2
readme.txt
CHANGED
@@ -31,6 +31,10 @@ See the [screenshots tab](http://wordpress.org/extend/plugins/regenerate-thumbna
|
|
31 |
|
32 |
== ChangeLog ==
|
33 |
|
|
|
|
|
|
|
|
|
34 |
= Version 2.2.3 =
|
35 |
|
36 |
* Make the capability required to use this plugin filterable so themes and other plugins can change it. Props [Jackson Whelan](http://jacksonwhelan.com/).
|
@@ -101,6 +105,9 @@ Lots of new features!
|
|
101 |
|
102 |
== Upgrade Notice ==
|
103 |
|
|
|
|
|
|
|
104 |
= 2.2.3 =
|
105 |
Make the capability required to use this plugin filterable so themes and other plugins can change it. Props [Jackson Whelan](http://jacksonwhelan.com/).
|
106 |
|
31 |
|
32 |
== ChangeLog ==
|
33 |
|
34 |
+
= Version 2.2.4 =
|
35 |
+
|
36 |
+
* Better AJAX response error handling in the JavaScript. This should fix a long-standing bug in this plugin. Props Hew Sutton.
|
37 |
+
|
38 |
= Version 2.2.3 =
|
39 |
|
40 |
* Make the capability required to use this plugin filterable so themes and other plugins can change it. Props [Jackson Whelan](http://jacksonwhelan.com/).
|
105 |
|
106 |
== Upgrade Notice ==
|
107 |
|
108 |
+
= 2.2.4 =
|
109 |
+
Better AJAX response error handling in the JavaScript. This should fix a long-standing bug in this plugin. Props Hew Sutton.
|
110 |
+
|
111 |
= 2.2.3 =
|
112 |
Make the capability required to use this plugin filterable so themes and other plugins can change it. Props [Jackson Whelan](http://jacksonwhelan.com/).
|
113 |
|
regenerate-thumbnails.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Plugin Name: Regenerate Thumbnails
|
6 |
Plugin URI: http://www.viper007bond.com/wordpress-plugins/regenerate-thumbnails/
|
7 |
Description: Allows you to regenerate all thumbnails after changing the thumbnail sizes.
|
8 |
-
Version: 2.2.
|
9 |
Author: Viper007Bond
|
10 |
Author URI: http://www.viper007bond.com/
|
11 |
|
@@ -279,6 +279,12 @@ class RegenerateThumbnails {
|
|
279 |
url: ajaxurl,
|
280 |
data: { action: "regeneratethumbnail", id: id },
|
281 |
success: function( response ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
if ( response.success ) {
|
283 |
RegenThumbsUpdateStatus( id, true, response );
|
284 |
}
|
@@ -298,7 +304,7 @@ class RegenerateThumbnails {
|
|
298 |
|
299 |
if ( rt_images.length && rt_continue ) {
|
300 |
RegenThumbs( rt_images.shift() );
|
301 |
-
}
|
302 |
else {
|
303 |
RegenThumbsFinishUp();
|
304 |
}
|
5 |
Plugin Name: Regenerate Thumbnails
|
6 |
Plugin URI: http://www.viper007bond.com/wordpress-plugins/regenerate-thumbnails/
|
7 |
Description: Allows you to regenerate all thumbnails after changing the thumbnail sizes.
|
8 |
+
Version: 2.2.4
|
9 |
Author: Viper007Bond
|
10 |
Author URI: http://www.viper007bond.com/
|
11 |
|
279 |
url: ajaxurl,
|
280 |
data: { action: "regeneratethumbnail", id: id },
|
281 |
success: function( response ) {
|
282 |
+
if ( response !== Object( response ) || ( typeof response.success === "undefined" && typeof response.error === "undefined" ) ) {
|
283 |
+
response = new Object;
|
284 |
+
response.success = false;
|
285 |
+
response.error = "<?php printf( esc_js( __( 'The resize request was abnormally terminated (ID %s). This is likely due to the image exceeding available memory or some other type of fatal error.', 'regenerate-thumbnails' ) ), '" + id + "' ); ?>";
|
286 |
+
}
|
287 |
+
|
288 |
if ( response.success ) {
|
289 |
RegenThumbsUpdateStatus( id, true, response );
|
290 |
}
|
304 |
|
305 |
if ( rt_images.length && rt_continue ) {
|
306 |
RegenThumbs( rt_images.shift() );
|
307 |
+
}
|
308 |
else {
|
309 |
RegenThumbsFinishUp();
|
310 |
}
|