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
..
2016-11-15 09:14:31 +00:00
2016-11-23 06:05:32 +00:00
2016-10-29 21:32:33 +00:00
2016-11-23 13:38:33 +00:00
2016-10-31 06:28:32 +00:00
2016-10-05 03:24:37 +00:00
2016-11-23 15:33:31 +00:00
2016-10-31 06:40:49 +00:00
2016-10-19 04:47:30 +00:00
2016-10-24 04:45:31 +00:00
2016-11-09 23:00:32 +00:00
2016-10-31 06:28:32 +00:00
2016-11-09 03:42:30 +00:00
2016-11-17 18:02:30 +00:00
2016-11-09 23:00:32 +00:00
2016-11-13 10:36:29 +00:00
2016-10-25 20:16:56 +00:00
2016-10-31 06:28:32 +00:00
2016-10-05 03:24:37 +00:00
2016-09-08 07:06:30 +00:00
2016-10-31 06:28:32 +00:00
2016-11-05 16:28:33 +00:00
2016-11-17 03:03:30 +00:00
2016-11-23 06:05:32 +00:00
2016-11-23 09:53:33 +00:00
2016-11-23 09:53:33 +00:00
2016-10-19 18:15:31 +00:00
2016-11-19 06:00:34 +00:00
2016-10-18 20:05:31 +00:00
2016-10-26 22:01:33 +00:00
2016-09-08 04:17:30 +00:00
2016-11-13 10:36:29 +00:00
2016-10-05 03:51:28 +00:00
2016-11-18 22:22:32 +00:00
2016-10-25 21:26:32 +00:00
2016-11-21 16:07:33 +00:00
2016-10-10 06:38:31 +00:00
2016-10-21 02:54:34 +00:00
2016-09-14 21:58:29 +00:00
2016-10-26 08:07:30 +00:00
2016-10-31 06:34:34 +00:00
2016-10-07 19:44:28 +00:00
2016-11-02 05:55:30 +00:00
2016-10-21 02:54:34 +00:00
2016-10-25 23:44:30 +00:00
2016-10-10 06:38:31 +00:00
2016-10-07 17:12:29 +00:00
2016-10-31 15:47:33 +00:00
2016-11-15 03:37:31 +00:00
2016-10-10 06:38:31 +00:00
2016-10-10 06:38:31 +00:00
2016-10-31 06:28:32 +00:00
2016-11-19 02:16:30 +00:00
2016-10-25 20:48:29 +00:00
2016-11-21 02:46:30 +00:00
2016-11-09 23:00:32 +00:00
2016-10-10 06:38:31 +00:00
2016-10-20 09:13:29 +00:00
2016-10-28 03:43:30 +00:00
2016-10-31 06:28:32 +00:00
2016-11-23 13:38:33 +00:00
2016-11-21 01:22:32 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-11-21 01:22:32 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-10-24 04:45:31 +00:00
2016-11-21 02:46:30 +00:00
2016-11-21 01:22:32 +00:00
2016-10-18 20:05:31 +00:00
2016-09-04 04:09:28 +00:00
2016-11-21 02:46:30 +00:00
2016-10-19 04:47:30 +00:00
2016-10-13 22:25:31 +00:00
2016-11-21 16:14:30 +00:00
2016-10-31 07:06:32 +00:00
2016-11-21 01:22:32 +00:00
2016-11-13 16:39:31 +00:00
2016-11-03 02:23:29 +00:00
2016-11-01 06:54:34 +00:00
2016-11-02 00:31:32 +00:00
2016-10-19 04:47:30 +00:00
2016-10-26 03:39:29 +00:00
2016-09-27 20:05:28 +00:00
2016-11-21 01:22:32 +00:00
2016-10-26 03:39:29 +00:00
2016-10-26 01:58:30 +00:00
2016-10-25 21:26:32 +00:00
2016-11-21 20:41:30 +00:00
2016-11-21 02:46:30 +00:00
2016-09-12 01:50:30 +00:00
2016-10-26 08:07:30 +00:00
2016-11-23 09:53:33 +00:00
2016-11-21 05:46:30 +00:00
2016-11-09 23:00:32 +00:00
2016-10-31 06:28:32 +00:00
2016-11-21 01:22:32 +00:00
2016-10-23 14:25:31 +00:00
2016-11-21 02:46:30 +00:00
2016-10-07 21:03:31 +00:00
2016-10-26 08:07:30 +00:00
2016-11-23 09:53:33 +00:00
2016-11-21 02:46:30 +00:00
2016-11-21 02:46:30 +00:00
2016-11-23 15:33:31 +00:00
2016-11-19 01:56:31 +00:00
2016-11-21 01:22:32 +00:00