mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-18 18:24:39 +00:00
24abde4e5400588c96cc86930472098311e7fd7c
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. git-svn-id: https://develop.svn.wordpress.org/trunk@39348 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
80.5%
CSS
9.4%
JavaScript
8.5%
SCSS
0.9%
HTML
0.7%