Ticket #3182: 3182.diff
File 3182.diff, 628 bytes (added by , 18 years ago) |
---|
-
wp-admin/admin-functions.php
1896 1896 // Move the file to the uploads dir 1897 1897 $new_file = $uploads['path'] . "/$filename"; 1898 1898 if ( false === @ move_uploaded_file($file['tmp_name'], $new_file) ) 1899 wp_die(printf(__('The uploaded file could not be moved to %s.'), $ file['path']));1899 wp_die(printf(__('The uploaded file could not be moved to %s.'), $uploads['path'])); 1900 1900 1901 1901 // Set correct file permissions 1902 1902 $stat = stat(dirname($new_file));