Media: Sanitize upload filename.

Merge of [38538] to the 4.4 branch.

Built from https://develop.svn.wordpress.org/branches/4.4@38541


git-svn-id: http://core.svn.wordpress.org/branches/4.4@38484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2016-09-07 13:58:28 +00:00
parent 48dad74eb6
commit b8e218019a
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ function media_handle_upload($file_id, $post_id, $post_data = array(), $override
$url = $file['url']; $url = $file['url'];
$type = $file['type']; $type = $file['type'];
$file = $file['file']; $file = $file['file'];
$title = $name; $title = sanitize_title( $name );
$content = ''; $content = '';
$excerpt = ''; $excerpt = '';