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

WordPress Trac noreply at wordpress.org
Sun Dec 2 22:08:50 UTC 2012


#22686: wp.getRevisions returns auto-drafts
-----------------------------+--------------------------
 Reporter:  maxcutler        |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  XML-RPC
  Version:  trunk            |   Severity:  normal
 Keywords:  needs-patch      |
-----------------------------+--------------------------
 The `wp.getRevisions` XML-RPC method (added in 3.5 trunk) will return
 auto-drafts for a post if they still exist. Auto-saves are filtered out
 correctly, but not auto-drafts. Since any post created using XML-RPC will
 have an auto-draft (due to the implementation of wp.newPost), this adds
 unnecessary burden on clients to filter out the meaningless auto draft.

 I'm not sure what the best way to check if a post is an auto-draft, so
 I've omitted a patch for now. Would be nice to see this in 3.5, but I
 understand if it has to be punted.

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


More information about the wp-trac mailing list