diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 194e8273a1..951cf59163 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -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 = ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index 1f3dada930..cc7dd6a6b5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5.4-alpha-38526'; +$wp_version = '4.5.4-alpha-38540'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.