Skip to content

Commit

Permalink
Media: Fix variable name in wp_check_filetype_and_ext().
Browse files Browse the repository at this point in the history
Props peterwilsoncc.
See #62272.

git-svn-id: https://develop.svn.wordpress.org/trunk@59358 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
azaozz committed Nov 6, 2024
1 parent da9a28d commit eab73a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3101,13 +3101,13 @@ function wp_check_filetype_and_ext( $file, $filename, $mimes = null ) {
// Attempt to figure out what type of image it actually is.
$real_mime = wp_get_image_mime( $file );

$heic_images_etx = array(
$heic_images_extensions = array(
'heif',
'heics',
'heifs',
);

if ( $real_mime && ( $real_mime !== $type || in_array( $ext, $heic_images_etx, true ) ) ) {
if ( $real_mime && ( $real_mime !== $type || in_array( $ext, $heic_images_extensions, true ) ) ) {
/**
* Filters the list mapping image mime types to their respective extensions.
*
Expand Down

0 comments on commit eab73a7

Please sign in to comment.