[wp-trac] [WordPress Trac] #50557: The file extension .heic is defined as an image into `wp_get_mime_types()` but not in `wp_get_ext_types()`

WordPress Trac noreply at wordpress.org
Sat Jul 4 19:36:36 UTC 2020


#50557: The file extension .heic is defined as an image into `wp_get_mime_types()`
but not in `wp_get_ext_types()`
--------------------------+-----------------------------
 Reporter:  imath         |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.5
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by azaozz):

 Thanks for the fix :)

 Wasn't sure what's best for "non-displayable images". Same for `tif, tiff`
 and probably for `bmp`. Currently they are treated as images (as the mime
 type is `image/*`) but then when creating the attachment post for the
 uploaded file, image meta is also created for them which seems wrong as
 they can only be used as "files". Worth another ticket for 5.6.

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


More information about the wp-trac mailing list