Crop-Thumbnails - Version 0.10.6

Version Description

  • improve the bugfix of 0.10.5 (sorry for that)
Download this release

Release Info

Developer Volkmar Kantor
Plugin Icon Crop-Thumbnails
Version 0.10.6
Comparing to
See all releases

Code changes from version 0.10.5 to 0.10.6

Files changed (3) hide show
  1. crop-thumbnails.php +2 -2
  2. functions/save.php +4 -4
  3. readme.txt +3 -0
crop-thumbnails.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://wordpress.org/extend/plugins/crop-thumbnails/
5
  * Author: Volkmar Kantor
6
  * Author URI: http://www.totalmedial.de
7
- * Version: 0.10.5
8
  * Description: Crop your thumbnails, the easy way.
9
  * Text Domain: crop-thumbnails
10
  *
@@ -27,7 +27,7 @@
27
 
28
  //cpt - stands for crop-post-thumbnail
29
  define('CROP_THUMBS_LANG','cpt_lang');
30
- define('CROP_THUMBS_VERSION','0.10.5');
31
 
32
  function cpt_plugin_init() {
33
  load_plugin_textdomain( CROP_THUMBS_LANG, false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
4
  * Plugin URI: http://wordpress.org/extend/plugins/crop-thumbnails/
5
  * Author: Volkmar Kantor
6
  * Author URI: http://www.totalmedial.de
7
+ * Version: 0.10.6
8
  * Description: Crop your thumbnails, the easy way.
9
  * Text Domain: crop-thumbnails
10
  *
27
 
28
  //cpt - stands for crop-post-thumbnail
29
  define('CROP_THUMBS_LANG','cpt_lang');
30
+ define('CROP_THUMBS_VERSION','0.10.6');
31
 
32
  function cpt_plugin_init() {
33
  load_plugin_textdomain( CROP_THUMBS_LANG, false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
functions/save.php CHANGED
@@ -249,11 +249,11 @@ class CptSaveThumbnail {
249
  $info = pathinfo($file);
250
  $dir = $info['dirname'];
251
  $ext = $info['extension'];
252
- $name = wp_basename($file, ".$ext");
253
- $suffix = "{$w}x{$h}";
254
- $destfilename = "{$dir}/{$name}-{$suffix}.{$ext}";
255
 
256
- return html_entity_decode($destfilename);
257
  }
258
  }
259
  ?>
249
  $info = pathinfo($file);
250
  $dir = $info['dirname'];
251
  $ext = $info['extension'];
252
+ $name = wp_basename($file, '.'.$ext);
253
+ $suffix = $w.'x'.$h;
254
+ $destfilename = $dir.'/'.$name.'-'.$suffix.'.'.$ext;
255
 
256
+ return $destfilename;
257
  }
258
  }
259
  ?>
readme.txt CHANGED
@@ -103,6 +103,9 @@ If you fork and planning to publish the forked plugin, please contact me.
103
  5. Choose what image-sizes should be hidden (for what post-types), for better usability.
104
 
105
  == Changelog ==
 
 
 
106
  = 0.10.5 =
107
  * bugfix: proper handling of non latin characters in filenames
108
 
103
  5. Choose what image-sizes should be hidden (for what post-types), for better usability.
104
 
105
  == Changelog ==
106
+ = 0.10.6 =
107
+ * improve the bugfix of 0.10.5 (sorry for that)
108
+
109
  = 0.10.5 =
110
  * bugfix: proper handling of non latin characters in filenames
111