Ticket #3182: 3182.diff

File 3182.diff, 628 bytes (added by Nazgul, 6 years ago)
  • wp-admin/admin-functions.php

     
    18961896        // Move the file to the uploads dir 
    18971897        $new_file = $uploads['path'] . "/$filename"; 
    18981898        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'])); 
    19001900 
    19011901        // Set correct file permissions 
    19021902        $stat = stat(dirname($new_file));