From 49d19a367a0636c79811d572cdc9e6eedb00990b Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 4 Jan 2015 03:08:48 +0000 Subject: [PATCH] ImageMagick expects TIFF files to have `.tiff` as an extension, so the key in `wp_get_mime_types()` should be `'tiff|tif'` not `'tif|tiff'` so the proper extension is returned in `WP_Image_Editor->get_extension()` subclass invocations. Fixes #30211. git-svn-id: https://develop.svn.wordpress.org/trunk@31044 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 76013c934e..00480d6848 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -2174,7 +2174,7 @@ function wp_get_mime_types() { 'gif' => 'image/gif', 'png' => 'image/png', 'bmp' => 'image/bmp', - 'tif|tiff' => 'image/tiff', + 'tiff|tif' => 'image/tiff', 'ico' => 'image/x-icon', // Video formats. 'asf|asx' => 'video/x-ms-asf',