Typo in wp_upload_bits()
git-svn-id: http://svn.automattic.com/wordpress/trunk@3376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
00e695e6f5
commit
d789b7005e
|
@ -907,7 +907,7 @@ function wp_upload_bits($name, $type, $bits) {
|
||||||
while ( file_exists($upload['path'] . "/$filename") )
|
while ( file_exists($upload['path'] . "/$filename") )
|
||||||
$filename = str_replace("$number.$ext", ++$number . ".$ext", $filename);
|
$filename = str_replace("$number.$ext", ++$number . ".$ext", $filename);
|
||||||
|
|
||||||
$new_file = $uploads['path'] . "/$filename";
|
$new_file = $upload['path'] . "/$filename";
|
||||||
$ifp = @ fopen($new_file, 'wb');
|
$ifp = @ fopen($new_file, 'wb');
|
||||||
if ( ! $ifp )
|
if ( ! $ifp )
|
||||||
return array('error' => "Could not write file $new_file.");
|
return array('error' => "Could not write file $new_file.");
|
||||||
|
|
Loading…
Reference in New Issue