WordPress 4.6.2
[autoinstalls/wordpress.git] / wp-admin / includes / media.php
index c6b2dcd1ba4fb25271de5e637dcc9ce793268eb2..7ff6e4a652865b89c9cb47ea8b2ce2ddcb1ce799 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 = sanitize_title( $name );
+       $title = sanitize_text_field( $name );
        $content = '';
        $excerpt = '';