summaryrefslogtreecommitdiffstats
path: root/wp-admin/admin-functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/admin-functions.php')
-rw-r--r--wp-admin/admin-functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php
index 5dd0794..5c220a5 100644
--- a/wp-admin/admin-functions.php
+++ b/wp-admin/admin-functions.php
@@ -1911,7 +1911,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));