Skip to content

Commit eab73a7

Browse files
committed
Media: Fix variable name in wp_check_filetype_and_ext().
Props peterwilsoncc. See #62272. git-svn-id: https://develop.svn.wordpress.org/trunk@59358 602fd350-edb4-49c9-b593-d223f7449a82
1 parent da9a28d commit eab73a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3101,13 +3101,13 @@ function wp_check_filetype_and_ext( $file, $filename, $mimes = null ) {
31013101
// Attempt to figure out what type of image it actually is.
31023102
$real_mime = wp_get_image_mime( $file );
31033103

3104-
$heic_images_etx = array(
3104+
$heic_images_extensions = array(
31053105
'heif',
31063106
'heics',
31073107
'heifs',
31083108
);
31093109

3110-
if ( $real_mime && ( $real_mime !== $type || in_array( $ext, $heic_images_etx, true ) ) ) {
3110+
if ( $real_mime && ( $real_mime !== $type || in_array( $ext, $heic_images_extensions, true ) ) ) {
31113111
/**
31123112
* Filters the list mapping image mime types to their respective extensions.
31133113
*

0 commit comments

Comments
 (0)