[wp-trac] [WordPress Trac] #21397: Expose post revisions on the XML-RPC Endpoint
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 30 11:49:37 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):
Looking at the patch:
* wp.getRevision: I think wp.getPost would work just the same, but this
adds an extra check to make sure we're getting back a revision and not a
regular post
* wp.getRevisions: looks good to me
* wp.newRevision: not sure what the goal was here, since editPost will
already create a new revision. IMO, the useful thing would be to create an
"autosave", just like wp-admin does. This could be wp.newAutosavePost or
just some sort of "autosave" flag for wp.editPost
* wp.restoreRevision: like Marko said, it doesn't work. It needs to call
{{{wp_restore_post_revision}}} instead of {{{wp_get_post_revision}}}
Also, most of the documentation is wrong in the patch. I can work on it
once we're clear on how we want to do newRevision/autosaves
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21397#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list