Version Description
- Fix for JPEG images
Download this release
Release Info
Developer | Pedro Elsner |
Plugin | Force Regenerate Thumbnails |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- force-regenerate-thumbnails.php +21 -3
- readme.txt +4 -1
force-regenerate-thumbnails.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Force Regenerate Thumbnails
|
4 |
Plugin URI: http://pedroelsner.com/2012/08/forcando-a-atualizacao-de-thumbnails-no-wordpress
|
5 |
Description: Delete and REALLY force the regenerate thumbnail. Based in plugin: Regenerate Thumbnails - All credits and thanks to Viper007Bond
|
6 |
-
Version: 1.
|
7 |
Author: Pedro Elsner
|
8 |
Author URI: http://www.pedroelsner.com/
|
9 |
*/
|
@@ -432,8 +432,26 @@ class ForceRegenerateThumbnails {
|
|
432 |
* @since 1.1
|
433 |
*/
|
434 |
$message = '';
|
435 |
-
|
436 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
$dirPath = explode(DIRECTORY_SEPARATOR, $imagePath);
|
438 |
$imageName = sprintf("%s-", $dirPath[count($dirPath)-1]);
|
439 |
unset($dirPath[count($dirPath)-1]);
|
3 |
Plugin Name: Force Regenerate Thumbnails
|
4 |
Plugin URI: http://pedroelsner.com/2012/08/forcando-a-atualizacao-de-thumbnails-no-wordpress
|
5 |
Description: Delete and REALLY force the regenerate thumbnail. Based in plugin: Regenerate Thumbnails - All credits and thanks to Viper007Bond
|
6 |
+
Version: 1.2
|
7 |
Author: Pedro Elsner
|
8 |
Author URI: http://www.pedroelsner.com/
|
9 |
*/
|
432 |
* @since 1.1
|
433 |
*/
|
434 |
$message = '';
|
435 |
+
|
436 |
+
|
437 |
+
/**
|
438 |
+
* Fix for format JPEG
|
439 |
+
* 12-11-2012 11h AM
|
440 |
+
*/
|
441 |
+
$array_path = explode(DIRECTORY_SEPARATOR, $fullsizepath);
|
442 |
+
$array_file = explode('.', $array_path[count($array_path)-1]);
|
443 |
+
|
444 |
+
$imageFormat = $array_file[count($array_file)-1];
|
445 |
+
|
446 |
+
unset($array_path[count($array_path)-1]);
|
447 |
+
unset($array_file[count($array_file)-1]);
|
448 |
+
|
449 |
+
$imagePath = implode(DIRECTORY_SEPARATOR, $array_path) . DIRECTORY_SEPARATOR . implode('.', $array_file);
|
450 |
+
|
451 |
+
|
452 |
+
/**
|
453 |
+
* Continue
|
454 |
+
*/
|
455 |
$dirPath = explode(DIRECTORY_SEPARATOR, $imagePath);
|
456 |
$imageName = sprintf("%s-", $dirPath[count($dirPath)-1]);
|
457 |
unset($dirPath[count($dirPath)-1]);
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== Force Regenerate Thumbnails ===
|
2 |
Contributors: Pedro Elsner
|
3 |
Requires at least: 2.8
|
4 |
-
Tested up to: 3.4.
|
5 |
Stable tag: trunk
|
6 |
Tags: force, regenerate thumbnails, thumbnail, thumbnails
|
7 |
|
@@ -29,6 +29,9 @@ See the [screenshots tab](http://wordpress.org/extend/plugins/force-regenerate-t
|
|
29 |
|
30 |
== ChangeLog ==
|
31 |
|
|
|
|
|
|
|
32 |
= 1.1 =
|
33 |
* Delete all custom image sizes when regenerate thumbnails
|
34 |
* Notifies you when thumbnails was deleted
|
1 |
=== Force Regenerate Thumbnails ===
|
2 |
Contributors: Pedro Elsner
|
3 |
Requires at least: 2.8
|
4 |
+
Tested up to: 3.4.2
|
5 |
Stable tag: trunk
|
6 |
Tags: force, regenerate thumbnails, thumbnail, thumbnails
|
7 |
|
29 |
|
30 |
== ChangeLog ==
|
31 |
|
32 |
+
= 1.2 =
|
33 |
+
* Fix for JPEG images
|
34 |
+
|
35 |
= 1.1 =
|
36 |
* Delete all custom image sizes when regenerate thumbnails
|
37 |
* Notifies you when thumbnails was deleted
|