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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 27 03:39:43 UTC 2012


#21397: Expose post revisions on the XML-RPC Endpoint
------------------------------+------------------
 Reporter:  daniloercoli      |       Owner:
     Type:  task (blessed)    |      Status:  new
 Priority:  normal            |   Milestone:  3.5
Component:  XML-RPC           |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  mobile has-patch  |
------------------------------+------------------

Comment (by nacin):

 In [22034]:
 {{{
 #!CommitTicketReference repository="" revision="22034"
 XML-RPC: Add an if_not_modified_since argument to wp.editPost.

 Accepts a GMT date, which is used to compare to the current
 post_modified_gmt
 value for the post being edited. If the post has since been edited (as in,
 too
 old of a date was passed), the edit is rejected as overwriting a newer
 version.

 It is rejected with a HTTP 409 Conflict status code. (Fancy.)

 props koke, markoheinjen.
 Tests: [UT1049]

 see #21397.
 }}}

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


More information about the wp-trac mailing list