[wp-trac] [WordPress Trac] #26808: Featured image not displaying if filetype is bmp

WordPress Trac noreply at wordpress.org
Mon May 26 00:58:57 UTC 2014


#26808: Featured image not displaying if filetype is bmp
--------------------------+------------------------------
 Reporter:  t.sjogren     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.8
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by ericlewis):

 The problem here is that BMPs are not whitelisted in
 `file_is_displayable_image()`^[https://core.trac.wordpress.org/browser/tags/3.9.1/src
 /wp-admin/includes/image.php#L407 1]^, which chokes
 `wp_generate_attachment_metadata()`^[https://core.trac.wordpress.org/browser/tags/3.9.1/src
 /wp-admin/includes/image.php#L77 2]^, so no sizing info is saved on
 upload.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26808#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list