Skip to content

Commit a18719e

Browse files
committed
Coding Standards: Fix alignment in wp_check_filetype_and_ext.
Follow-up to [59315]. See #62272, #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@60049 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d44e1c2 commit a18719e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/wp-includes/functions.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,22 +3124,22 @@ function wp_check_filetype_and_ext( $file, $filename, $mimes = null ) {
31243124
$mime_to_ext = apply_filters(
31253125
'getimagesize_mimes_to_exts',
31263126
array(
3127-
'image/jpeg' => 'jpg',
3128-
'image/png' => 'png',
3129-
'image/gif' => 'gif',
3130-
'image/bmp' => 'bmp',
3131-
'image/tiff' => 'tif',
3132-
'image/webp' => 'webp',
3133-
'image/avif' => 'avif',
3127+
'image/jpeg' => 'jpg',
3128+
'image/png' => 'png',
3129+
'image/gif' => 'gif',
3130+
'image/bmp' => 'bmp',
3131+
'image/tiff' => 'tif',
3132+
'image/webp' => 'webp',
3133+
'image/avif' => 'avif',
31343134

31353135
/*
31363136
* In theory there are/should be file extensions that correspond to the
31373137
* mime types: .heif, .heics and .heifs. However it seems that HEIC images
31383138
* with any of the mime types commonly have a .heic file extension.
31393139
* Seems keeping the status quo here is best for compatibility.
31403140
*/
3141-
'image/heic' => 'heic',
3142-
'image/heif' => 'heic',
3141+
'image/heic' => 'heic',
3142+
'image/heif' => 'heic',
31433143
'image/heic-sequence' => 'heic',
31443144
'image/heif-sequence' => 'heic',
31453145
)

0 commit comments

Comments
 (0)