Version Description
- Add PHP7 compatibility
Download this release
Release Info
Developer | Pedro Elsner |
Plugin | Force Regenerate Thumbnails |
Version | 2.0.6 |
Comparing to | |
See all releases |
Code changes from version 2.0.5 to 2.0.6
- force-regenerate-thumbnails.php +10 -2
- readme.txt +3 -0
force-regenerate-thumbnails.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Force Regenerate Thumbnails
|
5 |
Plugin URI: http://pedroelsner.com/2012/08/forcando-a-atualizacao-de-thumbnails-no-wordpress
|
6 |
Description: Delete and REALLY force the regenerate thumbnail.
|
7 |
-
Version: 2.0.
|
8 |
Author: Pedro Elsner
|
9 |
Author URI: http://www.pedroelsner.com/
|
10 |
*/
|
@@ -65,7 +65,7 @@ class ForceRegenerateThumbnails {
|
|
65 |
* @access public
|
66 |
* @since 1.0
|
67 |
*/
|
68 |
-
function
|
69 |
|
70 |
load_plugin_textdomain('force-regenerate-thumbnails', false, '/force-regenerate-thumbnails/localization');
|
71 |
|
@@ -360,6 +360,14 @@ class ForceRegenerateThumbnails {
|
|
360 |
url: ajaxurl,
|
361 |
data: { action: "regeneratethumbnail", id: id },
|
362 |
success: function(response) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
if (response.success) {
|
364 |
RegenThumbsUpdateStatus(id, true, response);
|
365 |
} else {
|
4 |
Plugin Name: Force Regenerate Thumbnails
|
5 |
Plugin URI: http://pedroelsner.com/2012/08/forcando-a-atualizacao-de-thumbnails-no-wordpress
|
6 |
Description: Delete and REALLY force the regenerate thumbnail.
|
7 |
+
Version: 2.0.6
|
8 |
Author: Pedro Elsner
|
9 |
Author URI: http://www.pedroelsner.com/
|
10 |
*/
|
65 |
* @access public
|
66 |
* @since 1.0
|
67 |
*/
|
68 |
+
function __construct() {
|
69 |
|
70 |
load_plugin_textdomain('force-regenerate-thumbnails', false, '/force-regenerate-thumbnails/localization');
|
71 |
|
360 |
url: ajaxurl,
|
361 |
data: { action: "regeneratethumbnail", id: id },
|
362 |
success: function(response) {
|
363 |
+
|
364 |
+
//Catch unknown error
|
365 |
+
if(response === null) {
|
366 |
+
response = {};
|
367 |
+
response.success = false;
|
368 |
+
response.error = 'Unknown error occured.';
|
369 |
+
}
|
370 |
+
|
371 |
if (response.success) {
|
372 |
RegenThumbsUpdateStatus(id, true, response);
|
373 |
} else {
|
readme.txt
CHANGED
@@ -27,6 +27,9 @@ See the [screenshots tab](http://wordpress.org/extend/plugins/force-regenerate-t
|
|
27 |
|
28 |
== ChangeLog ==
|
29 |
|
|
|
|
|
|
|
30 |
= 2.0.5 =
|
31 |
* No timeout limit
|
32 |
|
27 |
|
28 |
== ChangeLog ==
|
29 |
|
30 |
+
= 2.0.6 =
|
31 |
+
* Add PHP7 compatibility
|
32 |
+
|
33 |
= 2.0.5 =
|
34 |
* No timeout limit
|
35 |
|