[wp-trac] [WordPress Trac] #39422: Consistency for returned value of attachment meta : mime_type VS mime-type

WordPress Trac noreply at wordpress.org
Fri Dec 30 12:56:18 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        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by dhanendran):

 Apologies @gabrielstuff , that was my mistake I checked with the video
 type. Now I have checked with image and Yes it is returning mime type with
 `-`.


 {{{
 Array
 (
     [width] => 220
     [height] => 169
     [file] => 2016/12/helpinghomeless0.png
     [sizes] => Array
         (
             [thumbnail] => Array
                 (
                     [file] => helpinghomeless0-150x150.png
                     [width] => 150
                     [height] => 150
                     [mime-type] => image/png
                 )

         )

     [image_meta] => Array
         (
             [aperture] => 0
             [credit] =>
             [camera] =>
             [caption] =>
             [created_timestamp] => 0
             [copyright] =>
             [focal_length] => 0
             [iso] => 0
             [shutter_speed] => 0
             [title] =>
             [orientation] => 0
             [keywords] => Array
                 (
                 )

         )

 )
 }}}

 And this is happening in 4.7 as well. I'm not sure why this is been
 implemented in this way, lets wait and hear from the core team. Meanwhile,
 I will try to get a patch for this fix.

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


More information about the wp-trac mailing list