Skip to content

Commit

Permalink
improving bugfix of 0.10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Volkmar Kantor committed Dec 15, 2015
1 parent f623a4f commit 6467d99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crop-thumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: http://wordpress.org/extend/plugins/crop-thumbnails/
* Author: Volkmar Kantor
* Author URI: http://www.totalmedial.de
* Version: 0.10.5
* Version: 0.10.6
* Description: Crop your thumbnails, the easy way.
* Text Domain: crop-thumbnails
*
Expand All @@ -27,7 +27,7 @@

//cpt - stands for crop-post-thumbnail
define('CROP_THUMBS_LANG','cpt_lang');
define('CROP_THUMBS_VERSION','0.10.5');
define('CROP_THUMBS_VERSION','0.10.6');

function cpt_plugin_init() {
load_plugin_textdomain( CROP_THUMBS_LANG, false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
Expand Down
8 changes: 4 additions & 4 deletions functions/save.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ function generateFilename( $file, $w, $h ){
$info = pathinfo($file);
$dir = $info['dirname'];
$ext = $info['extension'];
$name = wp_basename($file, ".$ext");
$suffix = "{$w}x{$h}";
$destfilename = "{$dir}/{$name}-{$suffix}.{$ext}";
$name = wp_basename($file, '.'.$ext);
$suffix = $w.'x'.$h;
$destfilename = $dir.'/'.$name.'-'.$suffix.'.'.$ext;

return html_entity_decode($destfilename);
return $destfilename;
}
}
?>
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ If you fork and planning to publish the forked plugin, please contact me.
5. Choose what image-sizes should be hidden (for what post-types), for better usability.

== Changelog ==
= 0.10.6 =
* improve the bugfix of 0.10.5 (sorry for that)

= 0.10.5 =
* bugfix: proper handling of non latin characters in filenames

Expand Down

0 comments on commit 6467d99

Please sign in to comment.