[wp-trac] [WordPress Trac] #22686: wp.getRevisions returns auto-drafts

WordPress Trac noreply at wordpress.org
Sun Dec 2 22:26:38 UTC 2012


#22686: wp.getRevisions returns auto-drafts
--------------------------+------------------------------
 Reporter:  maxcutler     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  XML-RPC       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by maxcutler):

 If you create a new post with a title using wp.newPost, and then call
 wp.getRevisions, you will get two revisions back: one with your "real"
 title and one with a title "Auto Draft".

 The "Auto Draft" one does indeed have a post_status of "inherit", so it's
 not clear to me why it is surviving the wp.newPost code.

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


More information about the wp-trac mailing list