[wp-trac] [WordPress Trac] #33012: Full MIME type parameter ignored in wp_mime_type_icon() and 'default' used instead.

WordPress Trac noreply at wordpress.org
Thu Sep 17 00:36:14 UTC 2015


#33012: Full MIME type parameter ignored in wp_mime_type_icon() and 'default' used
instead.
--------------------------+------------------------------
 Reporter:  morganestes   |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.2.2
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34255"]:
 {{{
 #!CommitTicketReference repository="" revision="34255"
 In `wp_mime_type_icon()`, the length of the `$wilds` array varies
 depending on what is passed as `$mime`. Loop over `$wilds` instead of
 arbitrarily checking `$wilds[0]`.

 Adds unit tests.

 Fixes #33012.
 }}}

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


More information about the wp-trac mailing list