WordPress/wp-includes/rest-api
Gary Pendergast e6ce714219 REST API: Allow sending an empty or no-op comment update.
In general, updates that don't actually change anything should succeed. [39371] added tests for other object types, and this commit fixes empty updates for comments and adds the missing test.

Merges [39597] to the 4.7 branch.

Props jnylen0.
Fixes #38700.


Built from https://develop.svn.wordpress.org/branches/4.7@39628


git-svn-id: http://core.svn.wordpress.org/branches/4.7@39568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-21 05:13:36 +00:00
..
endpoints REST API: Allow sending an empty or no-op comment update. 2016-12-21 05:13:36 +00:00
fields REST API: Return a WP_Error if meta property is not an array. 2016-12-02 22:05:35 +00:00
class-wp-rest-request.php REST API: Do not error on empty JSON body 2016-12-16 05:43:33 +00:00
class-wp-rest-response.php DOCS: Replace HTTP links with HTTPS. 2016-06-10 04:50:33 +00:00
class-wp-rest-server.php Text Changes: Merge some duplicate strings with the same meaning in error messages, adjust some other strings for consistency and accuracy. 2016-11-17 15:53:33 +00:00