Branch: refs/heads/fix-calendar-post-date-225
Home:
https://github.com/Automattic/Edit-Flow
Commit: 09103ef7b0c43946342c2f677534ef3dcd7c2630
https://github.com/Automattic/Edit-Flow/commit/09103ef7b0c43946342c2f677534ef3dcd7c2630
Author: Daniel Bachhuber <
d...@danielbachhuber.com>
Date: 2013-12-31 (Tue, 31 Dec 2013)
Changed paths:
M modules/calendar/calendar.php
Log Message:
-----------
Persist the current value for the `post_date` field when a post is updated.
In `wp_update_post()`, core will reset the `post_date` field if the post currently has a status of `draft`, `pending` or `auto-draft`.
The Edit Flow calendar uses the `post_date` field as the canonical reference for the post's position on the calendar.
To prevent the post from moving to the current date when it's updated, we need to persist the `post_date` value for the post.