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:
parent
4a06a09310
commit
c9e60dab17
|
@ -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 = '';
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue