wordpress-develop/src/wp-includes/rest-api
Ryan McCue bbf129c935 REST API: Allow shortcircuiting rest_pre_insert_comment
rest_pre_insert_{post_type} allows returning a WP_Error from the filter to shortcircuit actually creating the object, so it makes sense to do so for comments too.

Props dspilka.
Fixes #39578.


git-svn-id: https://develop.svn.wordpress.org/trunk@39922 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-17 05:17:15 +00:00
..
endpoints REST API: Allow shortcircuiting rest_pre_insert_comment 2017-01-17 05:17:15 +00:00
fields REST API: Return a WP_Error if meta property is not an array. 2016-12-02 21:55:09 +00:00
class-wp-rest-request.php REST API: Do not error on empty JSON body 2016-12-13 03:33:14 +00:00
class-wp-rest-response.php DOCS: Replace HTTP links with HTTPS. 2016-06-10 04:49:09 +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:52:18 +00:00