From 39fceab5b4b5dccd8bb7f073d2e8a636f828b262 Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 28 Oct 2010 12:41:37 +0000 Subject: [PATCH] Add a filter to the mime type list displayed in the iframe media uploader when viewing the media library. Fixes #6348 props wojtek.szkutnik git-svn-id: http://svn.automattic.com/wordpress/trunk@16047 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 44a9da8759..08dc8dff56 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1861,7 +1861,7 @@ foreach ( $post_mime_types as $mime_type => $label ) { $type_links[] = "
  • $mime_type, 'paged'=>false))) . "'$class>" . sprintf(_n($label[2][0], $label[2][1], $num_posts[$mime_type]), "" . number_format_i18n( $num_posts[$mime_type] ) . '') . ''; } -echo implode(' |
  • ', $type_links) . ''; +echo implode(' | ', apply_filters( 'media_upload_mime_type_links', $type_links ) ) . ''; unset($type_links); ?>