mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 04:48:25 +01:00
Media: Sanitize upload filename.
Merge of [38538] to the 4.3 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.3@38542 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e9c0b66b45
commit
9722ceafaa
@ -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…
x
Reference in New Issue
Block a user