From a3cb29233b0eb9789f02a59633ab7fca4de80527 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 29 Dec 2005 01:40:42 +0000 Subject: [PATCH] Typo in wp_upload_bits() git-svn-id: https://develop.svn.wordpress.org/trunk@3376 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions-post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index ce75e1774f..ee9c959392 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -907,7 +907,7 @@ function wp_upload_bits($name, $type, $bits) { while ( file_exists($upload['path'] . "/$filename") ) $filename = str_replace("$number.$ext", ++$number . ".$ext", $filename); - $new_file = $uploads['path'] . "/$filename"; + $new_file = $upload['path'] . "/$filename"; $ifp = @ fopen($new_file, 'wb'); if ( ! $ifp ) return array('error' => "Could not write file $new_file.");