#8978 closed defect (bug) (fixed)
Drafts are published in the past
Reported by: | markjaquith | Owned by: | ryan |
---|---|---|---|
Milestone: | 2.7.1 | Priority: | high |
Severity: | critical | Version: | 2.7 |
Component: | Administration | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
- Save a draft.
- Leave it alone for a few days (or modify its post_date to be a few days in the past).
- Go back to the post and publish it (or just view the timestamp). You'll find it's in the past, instead of the current time, even though you've not specified a publish time.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
I think I know what's going on... touch_time() was expecting post_date to be all zeros for drafts and pending posts. But now it seems that post_date equals the last modified date.
8978.001.diff
switches that check to post_date_gmt, which seems to stay all zeros when a date is not specified.