#2963 closed defect (bug) (fixed)
Support Forums: Approving a post should not reset its date
Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Support Forums | Keywords: | |
Cc: |
Description
Approving a post from Spam or Pending queue resets the post date, which should not happen.
Approving a previously spammed or unapproved post does not change its date.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Spam posts appear to be unaffected, only pending posts are. The issue is that wp_update_post() overwrites the date for pending posts, unless the post already has a non-empty
post_date_gmt
.