[wp-trac] [WordPress Trac] #21397: Expose post revisions on the XML-RPC Endpoint

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 30 09:52:16 UTC 2012


#21397: Expose post revisions on the XML-RPC Endpoint
--------------------------+------------------
 Reporter:  daniloercoli  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  XML-RPC       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  mobile        |
--------------------------+------------------

Comment (by koke):

 What we really need fro every use case I can think of right now:

 Case 1: create new post with gallery

 Create new post/revision as auto-draft. We need a post ID to attach images
 to, it can be via wp.newPost accepting 'auto-draft' as status or
 wp.newRevision

 Case 2: Preview of edits to an existing post

 Save a new revision without updating the regular post.  Both a flag to
 wp.editPost or a new wp.newRevision would do the job here

 Case 3: Preview of new post

 Save as draft, then preview. Nothing needed here

 Case 4: Conflict management

 a) Before save, request a list of revisions, check if there's a new one
 (not very efficient)

 b) Add a flag (or make it default behavior) to wp.editPost to return an
 error if there's a revision newer than post_modified_gmt

 Case 5: Autosave

 Save a revision, same as case 2 for existing posts. If post is auto-draft,
 a regular save would work too

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


More information about the wp-trac mailing list