[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:34:23 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):
Replying to [comment:24 maxcutler]:
> * Drop `wp.newRevision` and just use existing `wp.newPost` or
`wp.editPost` with `draft` or `autosave` as `post_status`.
`draft` would just change the status, but I think `autosave` should work.
> * Add `autosave` to allowed list of post statuses in `_insert_post` (add
additional case to the `switch ( $post_data['post_status'] )` statement).
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`
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21397#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list