Make WordPress Core

Changeset 39850


Ignore:
Timestamp:
01/11/2017 04:35:21 PM (7 years ago)
Author:
joemcgill
Message:

Media: Fix exif_imagetype check in wp_get_image_mime

This is a follow up to [39831].

Props gitlost.
See #11946.

File:
1 edited

Legend:

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

    r39831 r39850  
    23662366     */
    23672367    try {
    2368         if ( ! is_callable( 'exif_imagetype' ) ) {
     2368        if ( is_callable( 'exif_imagetype' ) ) {
    23692369            $mime = image_type_to_mime_type( exif_imagetype( $file ) );
    23702370        } elseif ( function_exists( 'getimagesize' ) ) {
Note: See TracChangeset for help on using the changeset viewer.