[wp-trac] [WordPress Trac] #30320: wp_attachment_is_image() return false if extension is Uppercase

WordPress Trac noreply at wordpress.org
Sun Nov 16 21:00:45 UTC 2014


#30320: wp_attachment_is_image() return false if extension is Uppercase
-------------------------------+------------------------------
 Reporter:  netinial           |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  4.0
 Severity:  normal             |  Resolution:  worksforme
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by collinsinternet):

 * keywords:   => reporter-feedback
 * status:  new => closed
 * resolution:   => worksforme


Comment:

 The only way I am able to duplicate this is when the post/attachment does
 not have a valid post_mime_type (jpg,jpeg,jpe,gif,png or import).  So
 depending on how your attachment was imported/inserted would really affect
 the outcome of the wp_attachment_is_image().

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


More information about the wp-trac mailing list