Ticket #37608: 37608.2.diff
File 37608.2.diff, 619 bytes (added by , 8 years ago) |
---|
-
src/wp-admin/includes/media.php
284 284 if ( isset($file['error']) ) 285 285 return new WP_Error( 'upload_error', $file['error'] ); 286 286 287 $ basename = pathinfo( $name, PATHINFO_BASENAME );287 $filename = pathinfo( $name, PATHINFO_FILENAME ); 288 288 289 289 $url = $file['url']; 290 290 $type = $file['type']; 291 291 $file = $file['file']; 292 $title = sanitize_title( $ basename );292 $title = sanitize_title( $filename ); 293 293 $content = ''; 294 294 $excerpt = ''; 295 295