Changes from branches/3.0/wp-includes/ms-files.php at r16632 to trunk/wp-includes/ms-files.php at r14609
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-files.php
r16632 r14609 30 30 } 31 31 32 $mime = wp_check_filetype( $ file);32 $mime = wp_check_filetype( $_SERVER[ 'REQUEST_URI' ] ); 33 33 if( false === $mime[ 'type' ] && function_exists( 'mime_content_type' ) ) 34 34 $mime[ 'type' ] = mime_content_type( $file ); … … 37 37 $mimetype = $mime[ 'type' ]; 38 38 else 39 $mimetype = 'image/' . substr( $ file, strrpos( $file, '.' ) + 1 );39 $mimetype = 'image/' . substr( $_SERVER[ 'REQUEST_URI' ], strrpos( $_SERVER[ 'REQUEST_URI' ], '.' ) + 1 ); 40 40 41 41 header( 'Content-type: ' . $mimetype ); // always send this
Note: See TracChangeset
for help on using the changeset viewer.