[wp-trac] [WordPress Trac] #21397: Expose post revisions on the XML-RPC Endpoint
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 27 15:33:24 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):
Does it make more sense to create a bunch of new methods or to add this
onto the existing methods? The latter could look like:
* `wp.getPost` & `wp.getPosts` return `current_revision` and
`revision_count` values which tell you how many revisions are available.
* `wp.getPost` takes a new optional parameter to specify which revision to
return (defaults to the latest).
* Reverting to an old revision could be done manually or by a new method
(e.g., `wp.revertPostRevision`.
Either way, we should add an option to `wp.getOptions` that tells you
whether or not revisions are enabled for the blog (`WP_POST_REVISIONS`).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21397#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list