Typo in wp_upload_bits()
git-svn-id: https://develop.svn.wordpress.org/trunk@3376 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e45a58d547
commit
a3cb29233b
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user