WordPress/wp-includes/rest-api/endpoints
John Blackbourn 670319d84d REST API: Pass the previous state of the post as a parameter to the wp_after_insert_post hook.
This enables, for example, the previous post status to be used by this hook without the need to first capture it on an earlier hook.

This also fixes the value of the `$fire_after_hooks` parameter in `get_default_post_to_edit()` so the `wp_after_insert_post` action correctly fires just once on the new post screen.

This merges [45114] into the 5.6 branch

See #45114

Built from https://develop.svn.wordpress.org/branches/5.6@49732


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 20:57:05 +00:00
..
class-wp-rest-application-passwords-controller.php App Passwords: Unify availability language. 2020-11-16 22:42:04 +00:00
class-wp-rest-attachments-controller.php REST API: Pass the previous state of the post as a parameter to the wp_after_insert_post hook. 2020-12-01 20:57:05 +00:00
class-wp-rest-autosaves-controller.php Docs: Corrections and improvements to inline docs relating to the REST API. 2020-11-16 11:04:12 +00:00
class-wp-rest-block-directory-controller.php Editor: Display short description from block directory in results. 2020-11-10 20:26:08 +00:00
class-wp-rest-block-renderer-controller.php
class-wp-rest-block-types-controller.php
class-wp-rest-blocks-controller.php
class-wp-rest-comments-controller.php Docs: Corrections and improvements to inline docs relating to the REST API. 2020-11-16 11:04:12 +00:00
class-wp-rest-controller.php
class-wp-rest-plugins-controller.php
class-wp-rest-post-statuses-controller.php
class-wp-rest-post-types-controller.php Docs: Corrections and improvements to inline docs relating to the REST API. 2020-11-16 11:04:12 +00:00
class-wp-rest-posts-controller.php REST API: Pass the previous state of the post as a parameter to the wp_after_insert_post hook. 2020-12-01 20:57:05 +00:00
class-wp-rest-revisions-controller.php Docs: Corrections and improvements to inline docs relating to the REST API. 2020-11-16 11:04:12 +00:00
class-wp-rest-search-controller.php
class-wp-rest-settings-controller.php
class-wp-rest-site-health-controller.php Site Health, App Passwords: Ensure REST API responses are properly translated. 2020-12-01 18:07:08 +00:00
class-wp-rest-taxonomies-controller.php
class-wp-rest-terms-controller.php Docs: Corrections and improvements to inline docs relating to the REST API. 2020-11-16 11:04:12 +00:00
class-wp-rest-themes-controller.php
class-wp-rest-users-controller.php