[wp-trac] [WordPress Trac] #21397: Expose post revisions on the XML-RPC Endpoint
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 7 18:16: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 brandondove):
Posted first pass at adding the requested methods.
- wp.getRevision returns the content struct of the specified revision
- wp.getRevisions returns an array of content structs for the specified
post
- wp.newRevision saves a new revision (via wp_save_post_revision attached
to the pre_post_update hook) and updates the post with the specified
content struct. This piggybacks off of editPost.
- wp.restoreRevision rolls back a post to a specified revision.
Please confirm that this is the expected behavior.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21397#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list