WordPress/wp-includes/rest-api/endpoints
Rachel Baker a985a4d126 REST API: Always fire the rest_insert_* actions after the related object is updated or inserted.
Brings consistency to the `rest_insert_*` actions. Also includes some shuffling and clean-up as well including:
- Ensure we are passing the most current `$post` and `$user` objects to the `update_additional_fields_for_object()` callbacks.
- Changes the function signature of `handle_status_param()` in the Comments controller to accept just the comment_id as the 2nd parameter, instead of a full WP_Comment object. Only the comment_id is needed in the method, this avoids having to include another `get_comment()` call. 
- Renames a variable in the `create_item()` method of the Posts controller from `$post` -> `$prepared_post` to be more explicit.
- Minor fixes/clarifications to the rest_insert_* hook docs

Props rachelbaker, joehoyle
Fixes #38905.
Built from https://develop.svn.wordpress.org/trunk@39348


git-svn-id: http://core.svn.wordpress.org/trunk@39288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-23 15:33:31 +00:00
..
class-wp-rest-attachments-controller.php REST API: Always fire the rest_insert_* actions after the related object is updated or inserted. 2016-11-23 15:33:31 +00:00
class-wp-rest-comments-controller.php REST API: Always fire the rest_insert_* actions after the related object is updated or inserted. 2016-11-23 15:33:31 +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: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-posts-controller.php REST API: Always fire the rest_insert_* actions after the related object is updated or inserted. 2016-11-23 15:33:31 +00:00
class-wp-rest-revisions-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-settings-controller.php REST API: Switch to stable version of JSON Schema. 2016-11-03 02:22:29 +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 REST API: Always fire the rest_insert_* actions after the related object is updated or inserted. 2016-11-23 15:33:31 +00:00
class-wp-rest-users-controller.php REST API: Always fire the rest_insert_* actions after the related object is updated or inserted. 2016-11-23 15:33:31 +00:00