Changeset 15749
- Timestamp:
- 10/07/2010 09:00:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-files.php
r14609 r15749 30 30 } 31 31 32 $mime = wp_check_filetype( $ _SERVER[ 'REQUEST_URI' ]);32 $mime = wp_check_filetype( $file ); 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( $ _SERVER[ 'REQUEST_URI' ], strrpos( $_SERVER[ 'REQUEST_URI' ], '.' ) + 1 );39 $mimetype = 'image/' . substr( $file, strrpos( $file, '.' ) + 1 ); 40 40 41 41 header( 'Content-type: ' . $mimetype ); // always send this
Note: See TracChangeset
for help on using the changeset viewer.