| 1 | Index: wp-admin/includes/file.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/file.php (revision 19726) |
|---|
| 4 | +++ wp-admin/includes/file.php (working copy) |
|---|
| 5 | @@ -323,7 +323,7 @@ |
|---|
| 6 | |
|---|
| 7 | $filename = wp_unique_filename( $uploads['path'], $file['name'], $unique_filename_callback ); |
|---|
| 8 | |
|---|
| 9 | - $tmp_file = wp_tempnam($filename); |
|---|
| 10 | + $tmp_file = wp_tempnam( $file['name'], "{$uploads['path']}/" ); |
|---|
| 11 | |
|---|
| 12 | // Move the file to the uploads dir |
|---|
| 13 | if ( false === @ move_uploaded_file( $file['tmp_name'], $tmp_file ) ) |
|---|