mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -138,7 +138,7 @@ function wp_handle_upload( &$file, $overrides = false ) {
|
||||
|
||||
if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) )
|
||||
return $upload_error_handler( $file, __( 'File type does not meet security guidelines. Try another.' ));
|
||||
|
||||
|
||||
if ( !$ext )
|
||||
$ext = strrchr($file['name'], '.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user