Changeset 16632
- Timestamp:
- 11/30/2010 08:44:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-includes/ms-files.php
r14609 r16632 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.