[wp-trac] [WordPress Trac] #10752: Uploading new media to existing posts/pages backdates file location

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 8 20:35:21 UTC 2009


#10752: Uploading new media to existing posts/pages backdates file location
--------------------------+-------------------------------------------------
 Reporter:  dpie          |       Owner:                     
     Type:  defect (bug)  |      Status:  new                
 Priority:  normal        |   Milestone:  Unassigned         
Component:  Media         |     Version:  2.8.4              
 Severity:  minor         |    Keywords:  media, file, upload
--------------------------+-------------------------------------------------
 Using WP 2.8.4, when uploading new media files to a page or post that has
 already been published, the new file is added in the
 /UPLOAD_DIR/year/month/ directory that corresponds to the original
 page/post publication date, rather than the file upload date.

 Also, the correct file-upload-date-based directory is created (if it does
 not already exist), but the file is still placed in the older incorrect
 directory.

 Example: Assume the following...

 On /wp-admin/options-misc.php:
   * "Store uploads in this folder" (referred to above as UPLOAD_DIR) is
 set to "wp-content/uploads" or any other location, such as "files"
   * "Organize my uploads into month- and year-based folders" is checked

 On an existing Page:
   * Page has a published date of 3/1/2008
   * File a_test_file.jpg is uploaded on 9/1/2009
   * UPLOAD_DIR is set to "wp-content/uploads", has 777 permissions, and
 contains no subdirectories or files

 WordPress 2.6.x and below would have created the following:
   * /wp-content/uploads/2009/09/a_test_file.jpg

 However, WP 2.8.4 is creating:
   * /wp-content/uploads/2008/03/a_test_file.jpg
   * /wp-content/uploads/2009/09


 This issue was previously mentioned on the wordpress.org forums as being a
 known issue with WP 2.7.1: http://wordpress.org/support/topic/254786

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10752>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list