Media: Sanitize upload filename.
Merge of [38538] to the 4.6 branch. Built from https://develop.svn.wordpress.org/branches/4.6@38539 git-svn-id: http://core.svn.wordpress.org/branches/4.6@38482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
927e102a78
commit
e860e24b6e
|
@ -290,7 +290,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 = '';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6.1-RC1-38537';
|
||||
$wp_version = '4.6.1-RC1-38539';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue