Changeset 9727 for trunk/wp-admin/includes/image.php
- Timestamp:
- 11/15/2008 11:16:36 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/image.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image.php
r9119 r9727 320 320 if ( empty($info) ) 321 321 $result = false; 322 elseif ( !in_array($info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) ) 323 // only gif, jpeg and png images can reliably be displayed 322 elseif ( !in_array($info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) ) // only gif, jpeg and png images can reliably be displayed 324 323 $result = false; 325 elseif ( $info['channels'] > 0 && $info['channels'] != 3 ) {326 // some web browsers can't display cmyk or grayscale jpegs327 $result = false;328 }329 324 else 330 325 $result = true;
Note: See TracChangeset
for help on using the changeset viewer.