From 096efd99576d4fd7ad10942cc2e70c2fbf2997fd Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 29 Nov 2010 14:40:43 +0000 Subject: [PATCH] Remove unnecessary addslashes. Props duck_. fixes #15325 git-svn-id: http://svn.automattic.com/wordpress/trunk@16608 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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