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

WordPress Trac noreply at wordpress.org
Tue Oct 31 10:04:06 UTC 2017


#39422: Consistency for returned value of attachment meta : mime_type VS mime-type
------------------------------------------+-----------------------------
 Reporter:  gabrielstuff                  |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  Media                         |     Version:  4.6.1
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------

Comment (by birgire):

 It looks like affected files would be:

 {{{
 wp-includes/class-wp-image-editor.php
 wp-includes/SimplePie/Enclosure.php
 wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
 wp-includes/class-wp-image-editor-gd.php
 wp-includes/media.php
 wp-includes/class-wp-image-editor-imagick.php

 }}}

 and

 {{{
 tests/phpunit/tests/image/editorImagick.php
 tests/phpunit/tests/image/editorGd.php
 tests/phpunit/tests/image/functions.php
 tests/phpunit/tests/image/intermediateSize.php
 tests/phpunit/tests/media.php

 }}}

 Before changing these files and replace {{{mime-type}}} with
 {{{mime_type}}}, I wonder about all the plugins out there that might be
 using {{{mime-type}}}.

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


More information about the wp-trac mailing list