diff --git a/wp-admin/includes/import.php b/wp-admin/includes/import.php index c323cdd01d..51861bdcdb 100644 --- a/wp-admin/includes/import.php +++ b/wp-admin/includes/import.php @@ -56,7 +56,7 @@ function wp_import_cleanup( $id ) { * * @since 2.0.0 * - * @return array + * @return array Uploaded file's details on success, error message on failure */ function wp_import_handle_upload() { if ( !isset($_FILES['import']) ) { @@ -73,7 +73,7 @@ function wp_import_handle_upload() { $url = $file['url']; $type = $file['type']; - $file = addslashes( $file['file'] ); + $file = $file['file']; $filename = basename( $file ); // Construct the object array