Commit a739bf28a1 for wordpress.org
commit a739bf28a12d00e7bce850081c2432a1de44b0f8
Author: Andrew Ozz <admin@laptoptips.ca>
Date: Wed Nov 6 00:39:18 2024 +0000
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
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.