From a739bf28a12d00e7bce850081c2432a1de44b0f8 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 6 Nov 2024 00:39:18 +0000 Subject: [PATCH] Media: Fix variable name in `wp_check_filetype_and_ext()`. Props peterwilsoncc. See #62272. Built from https://develop.svn.wordpress.org/trunk@59358 git-svn-id: http://core.svn.wordpress.org/trunk@58744 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index aea82e76c9..ef2ce9d9c3 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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. * diff --git a/wp-includes/version.php b/wp-includes/version.php index c517f587b8..8f3b6a342f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59357'; +$wp_version = '6.8-alpha-59358'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.