Make WordPress Core

Opened 13 years ago

Closed 10 years ago

Last modified 10 years ago

#6751 closed defect (bug) (invalid)

wp_mime_type_icon() no longer supports custom media icons

Reported by: ryan Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Media Keywords:
Focuses: 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)

#1 @lloydbudd
13 years ago

  • Description modified (diff)
  • Keywords needs-patch added
  • Version set to 2.5

#2 @Denis-de-Bernardy
12 years ago

  • Component changed from General to Media
  • Owner anonymous deleted

#3 @dd32
12 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?

#4 @ryan
11 years ago

  • Milestone changed from 2.9 to Future Release

#5 @nacin
11 years ago

Related: #11981

#6 @solarissmoke
10 years ago

  • 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.

#7 @scribu
10 years ago

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