[wp-trac] [WordPress Trac] #21397: Expose post revisions on the XML-RPC Endpoint

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 19 18:38:29 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 has-patch  |
------------------------------+------------------

Comment (by maxcutler):

 In `wp.restoreRevision`, the cap check need to change from `edit_posts` to
 `edit_post, $post->ID`.

 I'd also like to see the default `xmlrpc_default_revision_fields` value be
 `array( 'post_date', 'post_date_gmt' )`. Only a few fields are actually
 stored in revisions by default, and plugins/themes have the ability to
 change those fields. For the use cases discussed, the only fields really
 necessary are the ID and the date; and if the client needs more fields,
 then they can use the `$fields` parameter to get them.

 The patch includes preview-related code, is that intentional? The
 discussion on #21398 seemed inconclusive, so do we want to put this
 approach in core for 3.5? If so, need code review from nacin or others on
 those changes to post.php.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21397#comment:36>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list