Create post with special post_status when viewing Add New screen
|Reported by:||markjaquith||Owned by:||markjaquith|
So many things would be easier if we had a post ID in hand when generating the Add New X screens. The previous concern has been ID inflation, but post revisions have already crossed that bridge.
- Auto-create a draft with a special status when entering Add New screen
- Update status to regular draft upon autosave or manual save
- Garbage collect old auto-drafts after x days
- Use XHR "ping" to prevent auto-draft from being deleted out from under an edit window that has been sitting around for a long time (icing)
#11145 would be fixed by this, as would several other bugs. In addition, we could remove all the JS code that updates all the post IDs on the first autosave, etc.