mirror of
git://develop.git.wordpress.org/
synced 2025-03-28 15:52:31 +01:00
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
This commit is contained in:
parent
d44e1c2ce2
commit
a18719e7ea
@ -3124,13 +3124,13 @@ function wp_check_filetype_and_ext( $file, $filename, $mimes = null ) {
|
||||
$mime_to_ext = apply_filters(
|
||||
'getimagesize_mimes_to_exts',
|
||||
array(
|
||||
'image/jpeg' => 'jpg',
|
||||
'image/png' => 'png',
|
||||
'image/gif' => 'gif',
|
||||
'image/bmp' => 'bmp',
|
||||
'image/tiff' => 'tif',
|
||||
'image/webp' => 'webp',
|
||||
'image/avif' => 'avif',
|
||||
'image/jpeg' => 'jpg',
|
||||
'image/png' => 'png',
|
||||
'image/gif' => 'gif',
|
||||
'image/bmp' => 'bmp',
|
||||
'image/tiff' => 'tif',
|
||||
'image/webp' => 'webp',
|
||||
'image/avif' => 'avif',
|
||||
|
||||
/*
|
||||
* In theory there are/should be file extensions that correspond to the
|
||||
@ -3138,8 +3138,8 @@ function wp_check_filetype_and_ext( $file, $filename, $mimes = null ) {
|
||||
* with any of the mime types commonly have a .heic file extension.
|
||||
* Seems keeping the status quo here is best for compatibility.
|
||||
*/
|
||||
'image/heic' => 'heic',
|
||||
'image/heif' => 'heic',
|
||||
'image/heic' => 'heic',
|
||||
'image/heif' => 'heic',
|
||||
'image/heic-sequence' => 'heic',
|
||||
'image/heif-sequence' => 'heic',
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user