Make WordPress Core


Ignore:
Timestamp:
10/28/2005 01:12:54 AM (21 years ago)
Author:
ryan
Message:

Create upload dirs with same perms as wp-content. fixes #1784 #1726

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/image-uploading.php

    r2958 r2967  
    111111if ( false === move_uploaded_file($_FILES['image']['tmp_name'], $file) )
    112112        die('The uploaded file could not be moved to $file.');
    113 chmod($file, 0775);
     113chmod($file, 0666);  // FIXME: Need to set this according to rw bits on parent dir.
    114114
    115115// Compute the URL
Note: See TracChangeset for help on using the changeset viewer.