Make WordPress Core


Ignore:
Timestamp:
01/11/2017 04:38:33 PM (8 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.6 branch.

Location:
branches/4.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6

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

    r39833 r39852  
    23452345     */
    23462346    try {
    2347         if ( ! is_callable( 'exif_imagetype' ) ) {
     2347        if ( is_callable( 'exif_imagetype' ) ) {
    23482348            $mime = image_type_to_mime_type( exif_imagetype( $file ) );
    23492349        } elseif ( function_exists( 'getimagesize' ) ) {
Note: See TracChangeset for help on using the changeset viewer.