diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 63807f71de..35aa7914c7 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -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 = ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index 0a96a6ba6c..ff2113eb5a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.