[wp-trac] [WordPress Trac] #38975: REST API: Add tests for empty or "no-op" updates

WordPress Trac noreply at wordpress.org
Wed Nov 30 03:27:26 UTC 2016


#38975: REST API: Add tests for empty or "no-op" updates
------------------------------------------------+----------------------
 Reporter:  jnylen0                             |       Owner:  jnylen0
     Type:  enhancement                         |      Status:  closed
 Priority:  normal                              |   Milestone:  4.7
Component:  REST API                            |     Version:  trunk
 Severity:  normal                              |  Resolution:  fixed
 Keywords:  has-unit-tests commit dev-reviewed  |     Focuses:
------------------------------------------------+----------------------

Comment (by pento):

 In [changeset:"39372"]:
 {{{
 #!CommitTicketReference repository="" revision="39372"
 REST API: Add tests for empty or "no-op" updates.

 The API should allow updates that don't actually change anything.  This
 allows clients to, for example, accidentally send the same request twice
 without encountering unexpected errors.  This currently works for posts,
 terms, and users, so this commit adds test cases accordingly.

 See #38700 for issues preventing this from working for comments.

 Merge of [39371] to the 4.7 branch.

 Props jnylen0.
 See #38975.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38975#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list