Changeset 1149

Show
Ignore:
Timestamp:
11/15/07 16:11:13 (1 year ago)
Author:
donncha
Message:

Use wp_check_filetype() first, fixes #496

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-content/blogs.php

    r1129 r1149  
    7272} 
    7373 
    74 if( function_exists( 'mime_content_type' ) ) { 
    75         $mime[ 'type' ] = mime_content_type( $file ); 
    76 } else { 
    77         $mime = wp_check_filetype( $_SERVER[ 'REQUEST_URI' ] ); 
    78 
     74$mime = wp_check_filetype( $_SERVER[ 'REQUEST_URI' ] ); 
     75if( $mime[ 'type' ] === false && function_exists( 'mime_content_type' ) ) 
     76                $mime[ 'type' ] = mime_content_type( $file ); 
     77 
    7978if( $mime[ 'type' ] != false ) { 
    8079        $mimetype = $mime[ 'type' ];