From 0d3ec17bb1a5395e697da01bd256470ed13a32f9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 29 Dec 2005 21:42:56 +0000 Subject: [PATCH] Silenzio. git-svn-id: https://develop.svn.wordpress.org/trunk@3380 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 916d3d3f4c..f4c2acad39 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -1721,7 +1721,7 @@ function wp_handle_upload(&$file, $overrides = false) { return $upload_error_handler($file, __('File is empty. Please upload something more substantial.')); // A properly uploaded file will pass this test. There should be no reason to override this one. - if (! is_uploaded_file($file['tmp_name']) ) + if (! @ is_uploaded_file($file['tmp_name']) ) return $upload_error_handler($file, __('Specified file failed upload test.')); // A correct MIME type will pass this test. @@ -1764,7 +1764,7 @@ function wp_handle_upload(&$file, $overrides = false) { // Move the file to the uploads dir $new_file = $uploads['path'] . "/$filename"; - if ( false === move_uploaded_file($file['tmp_name'], $new_file) ) + if ( false === @ move_uploaded_file($file['tmp_name'], $new_file) ) die(printf(__('The uploaded file could not be moved to %s.'), $file['path'])); // Set correct file permissions