Make WordPress Core

Ticket #11946: 11946-iscallable.diff

File 11946-iscallable.diff, 545 bytes (added by joemcgill, 8 years ago)
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index 28725e75473..2ee2be8a907 100644
    function wp_get_image_mime( $file ) { 
    23652365         * we assume the file could not be validated.
    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' ) ) {
    23712371                        $imagesize = getimagesize( $file );