Make WordPress Core

Changeset 11825


Ignore:
Timestamp:
08/16/2009 04:50:10 AM (15 years ago)
Author:
azaozz
Message:

Check if EXIF extension is loaded, props dd32, fixes #10613

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r11776 r11825  
    384384    } else {
    385385        $rotated = false;
    386         if ( IMAGETYPE_JPEG == $orig_type ) {
     386        if ( IMAGETYPE_JPEG == $orig_type && function_exists('exif_read_data') ) {
    387387            // rotate if EXIF 'Orientation' is set
    388388            $exif = exif_read_data($file, null, true);
Note: See TracChangeset for help on using the changeset viewer.