Ticket #6751 (closed defect (bug): invalid)

Opened 4 years ago

Last modified 10 months ago

wp_mime_type_icon() no longer supports custom media icons

Reported by: ryan Owned by:
Priority: normal Milestone:
Component: Media Version: 2.5
Severity: normal Keywords:
Cc:

Description (last modified by lloydbudd) (diff)

Support for custom media icons, as described  here, has been gutted from wp_mime_type_icon(). The crystal icons are hard coded.

ADDITIONAL DETAILS (to add finding this ticket)

from  http://codex.wordpress.org/Theme_Development#Media_Icons

Wordpress uses media icons to represent attachment files on your blog and in the Admin interface, if those icons are available.

It looks for image files named by media type in the images directory of the current theme.

For example, for an attachment of MIME type audio/mpeg, Wordpress would look for an icon file at these locations, stopping after the first match (see wp_mime_type_icon):

Change History

  • Keywords needs-patch added
  • Version set to 2.5
  • Description modified (diff)
  • Owner anonymous deleted
  • Component changed from General to Media

comment:3   dd322 years ago

  • Keywords dev-feedback added

Wow.. Is this still valid? I just got linked here from the Codex page..

Any plans on putting support back if its not already been done so?

comment:4   ryan2 years ago

  • Milestone changed from 2.9 to Future Release

Related: #11981

  • Keywords needs-patch dev-feedback removed
  • Status changed from new to closed
  • Resolution set to invalid

The crystal icons are hard coded.

There is (and always has been) a filter on icon_dir that lets you use a custom icon set. There is also another filter on wp_mime_type_icon.

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.