#8205 closed defect (bug) (fixed)
[9663] causes uploads to be stored in /uploads/0000/00/
Reported by: | DD32 | Owned by: | |
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | 2.7 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
[9663] Store uploads according to the parent post date when using year/ month sub-directories
results in this for $uploads when attaching to a draft:
array 'path' => string 'C:\www\wordpress/wp-content/uploads/0000/00' (length=43) 'url' => string 'http://localhost/wordpress/wp-content/uploads/0000/00' (length=53) 'subdir' => string '/0000/00' (length=8) 'basedir' => string 'C:\www\wordpress/wp-content/uploads' (length=35) 'baseurl' => string 'http://localhost/wordpress/wp-content/uploads' (length=45) 'error' => boolean false
It appears that _gmt's are not set for drafts, Not sure if the problem is the drafts, or the uploader for not taking it into consideration.
Attachments (1)
Change History (8)
#4
@
16 years ago
It should have been post_date, not post_date_gmt, but having a check there won't hurt.
Note: See
TracTickets for help on using
tickets.
Drafts purposefully don't have post_date_gmt set. Uploader should take into account.