From ca1d950498010168accb39344e50864d71f67514 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 2 Oct 2006 18:27:11 +0000 Subject: [PATCH] Use correct var. Props Nazgul. fixes #3182 git-svn-id: https://develop.svn.wordpress.org/trunk@4266 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index b18436a5db..786e58ec5a 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -1896,7 +1896,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) ) - wp_die(printf(__('The uploaded file could not be moved to %s.'), $file['path'])); + wp_die(printf(__('The uploaded file could not be moved to %s.'), $uploads['path'])); // Set correct file permissions $stat = stat(dirname($new_file));