summaryrefslogtreecommitdiffstats
path: root/wp-content
diff options
context:
space:
mode:
Diffstat (limited to 'wp-content')
-rw-r--r--wp-content/blogs.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/wp-content/blogs.php b/wp-content/blogs.php
index 798c433..2366152 100644
--- a/wp-content/blogs.php
+++ b/wp-content/blogs.php
@@ -71,11 +71,10 @@ if ( !is_file( $file ) ) {
die('404 — File not found.');
}
-if( function_exists( 'mime_content_type' ) ) {
- $mime[ 'type' ] = mime_content_type( $file );
-} else {
- $mime = wp_check_filetype( $_SERVER[ 'REQUEST_URI' ] );
-}
+$mime = wp_check_filetype( $_SERVER[ 'REQUEST_URI' ] );
+if( $mime[ 'type' ] === false && function_exists( 'mime_content_type' ) )
+ $mime[ 'type' ] = mime_content_type( $file );
+
if( $mime[ 'type' ] != false ) {
$mimetype = $mime[ 'type' ];
} else {