[wp-trac] [WordPress Trac] #21397: Expose post revisions on the XML-RPC Endpoint
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 30 18:52:21 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 maxcutler):
Replying to [comment:26 koke]:
> `draft` would just change the status, but I think `autosave` should
work.
Which you should use depends on the current status. If it's already a
draft, then you don't need to do anything. If it's been published, then
you should use `autosave` if you want to do a preview.
> Also I'd add `auto-draft` or make `autosave` create a new default post
on `wp.newPost`. Currently, `mw.newPost` accepts `auto-draft` as status
but I haven't tried `wp.newPost`
I'm not sure I see the point of allowing auto-draft. An auto-draft is
supposed to just be an empty post, which doesn't seem to apply to XML-RPC
scenarios. Unless otherwise explicitly indicated, clients should almost
always just let the status be `draft` until the user publishes or deletes
the post.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21397#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list