Version Description
- bugfix change use of mime_content_type() to wp_check_filetype() - it seems on some servers mime_content_type() is undefined
Download this release
Release Info
Developer | Volkmar Kantor |
Plugin | Crop-Thumbnails |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- crop-thumbnails.php +2 -2
- functions/save.php +3 -1
- readme.txt +4 -1
crop-thumbnails.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wordpress.org/extend/plugins/crop-thumbnails/
|
5 |
* Author: Volkmar Kantor
|
6 |
* Author URI: https://www.totalmedial.de
|
7 |
-
* Version: 1.1.
|
8 |
* Description: The easy way to adjust your cropped image sizes.
|
9 |
*
|
10 |
*
|
@@ -26,7 +26,7 @@
|
|
26 |
*/
|
27 |
|
28 |
|
29 |
-
define('CROP_THUMBNAILS_VERSION','1.1.
|
30 |
|
31 |
|
32 |
function cptLoadLanguage() {
|
4 |
* Plugin URI: https://wordpress.org/extend/plugins/crop-thumbnails/
|
5 |
* Author: Volkmar Kantor
|
6 |
* Author URI: https://www.totalmedial.de
|
7 |
+
* Version: 1.1.1
|
8 |
* Description: The easy way to adjust your cropped image sizes.
|
9 |
*
|
10 |
*
|
26 |
*/
|
27 |
|
28 |
|
29 |
+
define('CROP_THUMBNAILS_VERSION','1.1.1');
|
30 |
|
31 |
|
32 |
function cptLoadLanguage() {
|
functions/save.php
CHANGED
@@ -209,11 +209,13 @@ class CptSaveThumbnail {
|
|
209 |
private static function updateMetadata($imageMetadata, $imageSizeName, $currentFilePathInfo, $croppedWidth, $croppedHeight) {
|
210 |
$fullFilePath = trailingslashit($currentFilePathInfo['dirname']) . $currentFilePathInfo['basename'];
|
211 |
|
|
|
|
|
212 |
$newValues = array();
|
213 |
$newValues['file'] = $currentFilePathInfo['basename'];
|
214 |
$newValues['width'] = intval($croppedWidth);
|
215 |
$newValues['height'] = intval($croppedHeight);
|
216 |
-
$newValues['mime-type'] =
|
217 |
|
218 |
$oldValues = array();
|
219 |
if(empty($imageMetadata['sizes'])) {
|
209 |
private static function updateMetadata($imageMetadata, $imageSizeName, $currentFilePathInfo, $croppedWidth, $croppedHeight) {
|
210 |
$fullFilePath = trailingslashit($currentFilePathInfo['dirname']) . $currentFilePathInfo['basename'];
|
211 |
|
212 |
+
$fileTypeInformations = wp_check_filetype($fullFilePath);
|
213 |
+
|
214 |
$newValues = array();
|
215 |
$newValues['file'] = $currentFilePathInfo['basename'];
|
216 |
$newValues['width'] = intval($croppedWidth);
|
217 |
$newValues['height'] = intval($croppedHeight);
|
218 |
+
$newValues['mime-type'] = $fileTypeInformations['type'];
|
219 |
|
220 |
$oldValues = array();
|
221 |
if(empty($imageMetadata['sizes'])) {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: post-thumbnails, images, media library
|
|
5 |
Requires at least: 4.6
|
6 |
Requires PHP: 5.3.0
|
7 |
Tested up to: 4.9
|
8 |
-
Stable tag: 1.1.
|
9 |
License: GPL v3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -124,6 +124,9 @@ If you fork and planning to publish the forked plugin, please contact me.
|
|
124 |
|
125 |
== Changelog ==
|
126 |
|
|
|
|
|
|
|
127 |
= 1.1.0 =
|
128 |
* bugfix variable was used but not defined (php)
|
129 |
* bugfix image-size with custom name where not updated in view after crop
|
5 |
Requires at least: 4.6
|
6 |
Requires PHP: 5.3.0
|
7 |
Tested up to: 4.9
|
8 |
+
Stable tag: 1.1.1
|
9 |
License: GPL v3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
+
= 1.1.1 =
|
128 |
+
* bugfix change use of mime_content_type() to wp_check_filetype() - it seems on some servers mime_content_type() is undefined
|
129 |
+
|
130 |
= 1.1.0 =
|
131 |
* bugfix variable was used but not defined (php)
|
132 |
* bugfix image-size with custom name where not updated in view after crop
|