From 5333c986e33013c8fb8c812f5939ac9809dd6725 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 1 Mar 2010 22:45:11 +0000 Subject: [PATCH] Fall back to displaying mime type when file has no extension. fixes #9924 props mdawaffe git-svn-id: https://develop.svn.wordpress.org/trunk@13541 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-attachment-rows.php | 7 ++++++- wp-admin/upload.php | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php index 307d63b2dc..21b66c63ad 100644 --- a/wp-admin/edit-attachment-rows.php +++ b/wp-admin/edit-attachment-rows.php @@ -85,7 +85,12 @@ foreach ($posts_columns as $column_name => $column_display_name ) { case 'media': ?> >
- ID))); ?> + ID ), $matches ) ) + echo wp_specialchars( strtoupper( $matches[1] ) ); + else + echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) ); + ?>


- ID))); ?> + ID ), $matches ) ) + echo wp_specialchars( strtoupper( $matches[1] ) ); + else + echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) ); + ?>