From d789b7005e52c5322d0a287703d8024c60bb1cc8 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 29 Dec 2005 01:40:42 +0000 Subject: [PATCH] Typo in wp_upload_bits() git-svn-id: http://svn.automattic.com/wordpress/trunk@3376 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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.");