Make WordPress Core

Opened 7 years ago

Closed 5 years ago

Last modified 5 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)

comment:1 @lloydbudd7 years ago

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

comment:2 @Denis-de-Bernardy6 years ago

  • Component changed from General to Media
  • Owner anonymous deleted

comment:3 @dd326 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 @ryan6 years ago

  • Milestone changed from 2.9 to Future Release

comment:5 @nacin6 years ago

Related: #11981

comment:6 @solarissmoke5 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.

comment:7 @scribu5 years ago

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