Media: Sanitize upload filename.

Built from https://develop.svn.wordpress.org/trunk@38538


git-svn-id: http://core.svn.wordpress.org/trunk@38481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2016-09-07 13:55:36 +00:00
parent 4a06a09310
commit c9e60dab17
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38536';
$wp_version = '4.7-alpha-38538';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.