Crop-Thumbnails - Version 0.10.15

Version Description

  • bugfix: use wordpress-function to determine mime-type, as some servers do not define "mime_content_type" (Thank you Eskil Keskikangas for the submission)
Download this release

Release Info

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

Code changes from version 0.10.14 to 0.10.15

Files changed (3) hide show
  1. crop-thumbnails.php +2 -2
  2. functions/save.php +2 -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.14
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.14');
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.15
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.15');
31
 
32
  function cpt_plugin_init() {
33
  load_plugin_textdomain( CROP_THUMBS_LANG, false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
functions/save.php CHANGED
@@ -118,11 +118,12 @@ class CptSaveThumbnail {
118
 
119
  if(!$_error) {
120
  //update metadata --> otherwise new sizes will not be updated
 
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'];
118
 
119
  if(!$_error) {
120
  //update metadata --> otherwise new sizes will not be updated
121
+ $filetype = wp_check_filetype( $_filepath );
122
  $_new_meta = array(
123
  'file'=>$_filepath_info['basename'],
124
  'width'=>intval($crop_width),
125
  'height'=>intval($crop_height),
126
+ 'mime-type' => $filetype['type']
127
  );
128
  if(!empty($dbImageSizes[$_imageSize->name]['crop'])) {
129
  $_new_meta['crop'] = $dbImageSizes[$_imageSize->name]['crop'];
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: 0.10.14
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.14 =
125
  * bugfix: add mime-type to image-metadata (the mime-type was deleted by crop-thumbnails before unintentional)
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.15
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.15 =
125
+ * bugfix: use wordpress-function to determine mime-type, as some servers do not define "mime_content_type" (Thank you Eskil Keskikangas for the submission)
126
+
127
  = 0.10.14 =
128
  * bugfix: add mime-type to image-metadata (the mime-type was deleted by crop-thumbnails before unintentional)
129