[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:02:04 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:
------------------------------------------------+----------------------
Changes (by jnylen0):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"39371"]:
{{{
#!CommitTicketReference repository="" revision="39371"
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.
Fixes #38975.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38975#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list