Opened 5 years ago

Closed 2 years ago

Last modified 2 years ago

#6751 closed defect (bug) (invalid)

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)

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 (7)

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

comment:3   dd324 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   ryan4 years ago

  • Milestone changed from 2.9 to Future Release

Related: #11981

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

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.