[wp-trac] [WordPress Trac] #11889: Create post with special post_status when viewing Add New screen

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 6 10:12:11 UTC 2010


#11889: Create post with special post_status when viewing Add New screen
----------------------------+-----------------------------------------------
 Reporter:  markjaquith     |       Owner:  markjaquith
     Type:  task (blessed)  |      Status:  accepted   
 Priority:  high            |   Milestone:  3.0        
Component:  Autosave        |     Version:  3.0        
 Severity:  normal          |    Keywords:  featured   
----------------------------+-----------------------------------------------

Comment(by markjaquith):

 1. creates a post with post_status=auto-draft
  2. First auto- or manual save turns it into a real draft
  3. when auto-drafts are created, it deletes ones older than one week
  4. you now always have a post ID on the post edit screen, which fixes all
 those attachment- and meta-related bugs. No more fetching new nonces. No
 more negative post IDs.

 There are two areas I was confused about, which could use another look.
 The auto-save collision code in {{{wp_write_post()}}}. I left it how it
 was... keying off of $temp_ID. Not sure how to update this.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11889#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list