Make WordPress Core


Ignore:
Timestamp:
01/11/2017 04:39:22 PM (9 years ago)
Author:
joemcgill
Message:

Media: Fix exif_imagetype check in wp_get_image_mime

This is a follow up to [39831].

Merges [39850] to the 4.5 branch.

Location:
branches/4.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

  • branches/4.5/src/wp-includes/functions.php

    r39834 r39853  
    23562356     */
    23572357    try {
    2358         if ( ! is_callable( 'exif_imagetype' ) ) {
     2358        if ( is_callable( 'exif_imagetype' ) ) {
    23592359            $mime = image_type_to_mime_type( exif_imagetype( $file ) );
    23602360        } elseif ( function_exists( 'getimagesize' ) ) {
Note: See TracChangeset for help on using the changeset viewer.