[wp-trac] [WordPress Trac] #11889: Create post with special post_status when viewing Add New screen
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 13 20:26:58 UTC 2010
#11889: Create post with special post_status when viewing Add New screen
----------------------------+-----------------------------------------------
Reporter: markjaquith | Owner: markjaquith
Type: task (blessed) | Status: new
Priority: high | Milestone: 3.0
Component: Autosave | Version: 3.0
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
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.
The plan:
1. Auto-create a draft with a special status when entering Add New screen
1. Update status to regular draft upon autosave or manual save
1. Garbage collect old auto-drafts after x days
1. 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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11889>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list