[wp-trac] [WordPress Trac] #60740: wp_mime_type_icon function fails to return non-SVG icons

WordPress Trac noreply at wordpress.org
Fri Mar 15 16:35:34 UTC 2024


#60740: wp_mime_type_icon function fails to return non-SVG icons
-----------------------------------------------+------------------------
 Reporter:  dglingren                          |       Owner:  joedolson
     Type:  defect (bug)                       |      Status:  closed
 Priority:  normal                             |   Milestone:  6.5
Component:  Media                              |     Version:  trunk
 Severity:  normal                             |  Resolution:  fixed
 Keywords:  has-patch has-testing-info commit  |     Focuses:
-----------------------------------------------+------------------------
Changes (by joedolson):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57845" 57845]:
 {{{
 #!CommitTicketReference repository="" revision="57845"
 Media: Fall back to available icons if SVG media icons not found.

 Follow up to [57687]. If no icons of the preferred type are available,
 then the icon array should return the collection of valid icons found,
 rather than an empty array.

 Props sabernhardt, swissspidy, sabernhardt, antpb, joedolson.
 Fixes #60740.
 }}}

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


More information about the wp-trac mailing list