]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/media.php
WordPress 4.6.1
[autoinstalls/wordpress.git] / wp-admin / includes / media.php
index 8b95181c548d56616cf761e798150328cd27a251..c6b2dcd1ba4fb25271de5e637dcc9ce793268eb2 100644 (file)
@@ -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 = '';