Crop-Thumbnails - Version 0.10.14

Version Description

  • bugfix: add mime-type to image-metadata (the mime-type was deleted by crop-thumbnails before unintentional)
Download this release

Release Info

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

Code changes from version 0.10.13 to 0.10.14

Files changed (3) hide show
  1. crop-thumbnails.php +2 -2
  2. functions/save.php +3 -1
  3. readme.txt +4 -1
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.13
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.13');
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.14
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.14');
31
 
32
  function cpt_plugin_init() {
33
  load_plugin_textdomain( CROP_THUMBS_LANG, false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
functions/save.php CHANGED
@@ -121,7 +121,9 @@ class CptSaveThumbnail {
121
  $_new_meta = array(
122
  'file'=>$_filepath_info['basename'],
123
  'width'=>intval($crop_width),
124
- 'height'=>intval($crop_height));
 
 
125
  if(!empty($dbImageSizes[$_imageSize->name]['crop'])) {
126
  $_new_meta['crop'] = $dbImageSizes[$_imageSize->name]['crop'];
127
  }
121
  $_new_meta = array(
122
  'file'=>$_filepath_info['basename'],
123
  'width'=>intval($crop_width),
124
+ 'height'=>intval($crop_height),
125
+ 'mime-type' => mime_content_type($_filepath)
126
+ );
127
  if(!empty($dbImageSizes[$_imageSize->name]['crop'])) {
128
  $_new_meta['crop'] = $dbImageSizes[$_imageSize->name]['crop'];
129
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=volkm
4
  Tags: post-thumbnails, images, media library
5
  Requires at least: 4.6
6
  Tested up to: 4.7
7
- Stable tag: trunk
8
  License: GPL v3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -121,6 +121,9 @@ If you fork and planning to publish the forked plugin, please contact me.
121
  6. Quicktest on settings-page, to check if your system is correct setup.
122
 
123
  == Changelog ==
 
 
 
124
  = 0.10.13 =
125
  * bugfix: filter-settings will work again in media-dialog
126
 
4
  Tags: post-thumbnails, images, media library
5
  Requires at least: 4.6
6
  Tested up to: 4.7
7
+ Stable tag: 0.10.14
8
  License: GPL v3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
121
  6. Quicktest on settings-page, to check if your system is correct setup.
122
 
123
  == Changelog ==
124
+ = 0.10.14 =
125
+ * bugfix: add mime-type to image-metadata (the mime-type was deleted by crop-thumbnails before unintentional)
126
+
127
  = 0.10.13 =
128
  * bugfix: filter-settings will work again in media-dialog
129