[wp-trac] [WordPress Trac] #33764: A permanent auto-draft?

WordPress Trac noreply at wordpress.org
Mon Sep 7 13:43:41 UTC 2015


#33764: A permanent auto-draft?
--------------------------+----------------------
 Reporter:  luciole135    |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by swissspidy):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hey there.

 Quoting the explanations from an [http://lists.automattic.com/pipermail
 /wp-hackers/2012-February/042398.html old wp-hackers thread]:

 >Auto-drafts exist because of the fact that multiple users can create new
 posts at the same time. If two people enter post-new at roughly the same
 moment, then have their first autosaves occur nearly simultaneously, then
 there is a race condition that can cause one of them to get back the wrong
 post ID, which will cause a post to be overwritten/lost when they then
 continue editing the post.
 >
 >The auto-draft creates the post and gets the ID of the new post before
 the editing screen is displayed, thus preventing two simultaneous authors
 from accidentally having the same post ID in the data in their browser.

 Furthermore:

 > Auto-drafts are automatically deleted after 7 days of going unused.
 They're self-cleaning, basically. '''No need to worry about them.'''
 >
 > They also go away when the first auto-save occurs while writing a new
 post.

 Via: http://wordpress.stackexchange.com/questions/44352/how-to-avoid-a
 -bunch-of-useless-auto-draft-id-entries-related-in-posts-table-an

 Personally I've never seen an install where auto-drafts wouldn't get
 deleted after that period of time. Closing this as invalid as it isn't a
 bug or an enhancement.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33764#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list