WordPress/wp-includes/rest-api/endpoints
Ryan McCue dc133c3f2d 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.

Built from https://develop.svn.wordpress.org/trunk@39922


git-svn-id: http://core.svn.wordpress.org/trunk@39859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 05:18:41 +00:00
..
class-wp-rest-attachments-controller.php Docs: Correct rest_insert_* duplicate hook references in REST API. 2017-01-04 13:23:40 +00:00
class-wp-rest-comments-controller.php REST API: Allow shortcircuiting rest_pre_insert_comment 2017-01-17 05:18:41 +00:00
class-wp-rest-controller.php REST API: Remove rest_get_post filter and get_post abstraction. 2016-11-08 13:09:33 +00:00
class-wp-rest-post-statuses-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-post-types-controller.php REST API: Add the supports property to the Post Type response object. 2016-12-29 17:28:45 +00:00
class-wp-rest-posts-controller.php Docs: Correct rest_insert_* duplicate hook references in REST API. 2017-01-04 13:23:40 +00:00
class-wp-rest-revisions-controller.php REST API: Merge similar date strings in the revisions and comments controllers. 2016-12-04 20:25:43 +00:00
class-wp-rest-settings-controller.php Docs: Misc corrections and additions to inline documentation. 2016-12-27 09:28:40 +00:00
class-wp-rest-taxonomies-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-terms-controller.php Docs: Correct rest_insert_* duplicate hook references in REST API. 2017-01-04 13:23:40 +00:00
class-wp-rest-users-controller.php REST API: Change which users are shown in the users endpoint. 2017-01-11 14:14:42 +00:00