Remove unnecessary addslashes. Props duck_. fixes #15325

git-svn-id: http://svn.automattic.com/wordpress/trunk@16608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-11-29 14:40:43 +00:00
parent d2bce97ced
commit 096efd9957
1 changed files with 2 additions and 2 deletions

View File

@ -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