Changeset 20706 for trunk/wp-admin/custom-header.php
- Timestamp:
- 05/02/2012 09:35:56 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/custom-header.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r20384 r20706 859 859 $url = str_replace(basename($parent_url), basename($cropped), $parent_url); 860 860 861 $size = @getimagesize( $cropped ); 862 $image_type = ( $size ) ? $size['mime'] : 'image/jpeg'; 863 861 864 // Construct the object array 862 865 $object = array( … … 864 867 'post_title' => basename($cropped), 865 868 'post_content' => $url, 866 'post_mime_type' => 'image/jpeg',869 'post_mime_type' => $image_type, 867 870 'guid' => $url, 868 871 'context' => 'custom-header'
Note: See TracChangeset
for help on using the changeset viewer.