mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
Use Dashicon-style images for mime type icons. Actually moving to Dashicons via the font can be explored later, but has theme/plugin implications and requires too many changes to make it for 3.9. props melchoyce for the icons. fixes #26650.
git-svn-id: https://develop.svn.wordpress.org/trunk@27726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4479,8 +4479,8 @@ function wp_mime_type_icon( $mime = 0 ) {
|
||||
$icon_files = wp_cache_get('icon_files');
|
||||
|
||||
if ( !is_array($icon_files) ) {
|
||||
$icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/crystal' );
|
||||
$icon_dir_uri = apply_filters( 'icon_dir_uri', includes_url('images/crystal') );
|
||||
$icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/media' );
|
||||
$icon_dir_uri = apply_filters( 'icon_dir_uri', includes_url('images/media') );
|
||||
$dirs = apply_filters( 'icon_dirs', array($icon_dir => $icon_dir_uri) );
|
||||
$icon_files = array();
|
||||
while ( $dirs ) {
|
||||
|
||||
Reference in New Issue
Block a user