diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 40e394a32b..2a7d6b5ab3 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -280,7 +280,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 = '';