[wp-trac] [WordPress Trac] #39422: Consistency for returned value of attachment meta : mime_type VS mime-type
WordPress Trac
noreply at wordpress.org
Thu Dec 29 22:55:30 UTC 2016
#39422: Consistency for returned value of attachment meta : mime_type VS mime-type
--------------------------+-----------------------------
Reporter: gabrielstuff | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.6.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hello here,
While using the function wp_get_attachment_metadata, the returned
associative array is not consistent.
For video attachment it will give mime_type key with a "_" and for images
it will return mime-type key with a "-".
The returned mime type key should either be "mime_type" or "mime-type",
but should be the same for any type of media attachment.
Thanks for the great job !
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39422>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list