Make WordPress Core

Changeset 59358


Ignore:
Timestamp:
11/06/2024 12:37:33 AM (5 weeks ago)
Author:
azaozz
Message:

Media: Fix variable name in wp_check_filetype_and_ext().

Props peterwilsoncc.
See #62272.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r59315 r59358  
    31023102        $real_mime = wp_get_image_mime( $file );
    31033103
    3104         $heic_images_etx = array(
     3104        $heic_images_extensions = array(
    31053105            'heif',
    31063106            'heics',
     
    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.
Note: See TracChangeset for help on using the changeset viewer.