Media: Sanitize upload filename.
Merge of [38538] to the 4.3 branch. Built from https://develop.svn.wordpress.org/branches/4.3@38542 git-svn-id: http://core.svn.wordpress.org/branches/4.3@38485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
98e3e2e137
commit
5c4b8e4eae
|
@ -280,7 +280,7 @@ function media_handle_upload($file_id, $post_id, $post_data = array(), $override
|
|||
$url = $file['url'];
|
||||
$type = $file['type'];
|
||||
$file = $file['file'];
|
||||
$title = $name;
|
||||
$title = sanitize_title( $name );
|
||||
$content = '';
|
||||
$excerpt = '';
|
||||
|
||||
|
|
Loading…
Reference in New Issue