WordPress/wp-includes/rest-api/endpoints
Peter Wilson 43290b2e04 REST API: Fire wp_after_insert_post later in new post object endpoints.
In the new menu items, global items and template controllers manually call the function `wp_after_insert_post()` to manually fire the action of the same name after all potential data is updated.

This accounts for the use case in which a theme or plugin developer has modified the endpoints use of either taxonomy or meta data.

The new parameter `$fire_after_hooks` is added to `wp_update_nav_menu_item()` to control whether the `wp_after_insert_post` action is fired when it in turn calls `wp_insert_post()`.

Props spacedmonkey, peterwilsoncc, zieladam.
Fixes #54536.


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


git-svn-id: http://core.svn.wordpress.org/trunk@51868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-30 01:10:08 +00:00
..
class-wp-rest-application-passwords-controller.php Application Passwords: Various docblock improvements. 2021-10-30 20:26:59 +00:00
class-wp-rest-attachments-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:59:02 +00:00
class-wp-rest-autosaves-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:16:58 +00:00
class-wp-rest-block-directory-controller.php Code Modernization: Fix parameter name mismatches for parent/child classes in WP_REST_Controller::prepare_item_for_response(). 2021-09-09 18:36:57 +00:00
class-wp-rest-block-renderer-controller.php Docs: Document the globals used in some REST API methods. 2021-06-30 12:34:56 +00:00
class-wp-rest-block-types-controller.php Code Modernization: Fix parameter name mismatches for parent/child classes in WP_REST_Controller::prepare_item_for_response(). 2021-09-09 18:36:57 +00:00
class-wp-rest-blocks-controller.php Role/Capability: Use meta caps edit_post, read_post, and delete_post directly. 2020-05-23 15:24:07 +00:00
class-wp-rest-comments-controller.php Code Modernization: Fix parameter name mismatches for parent/child classes in WP_REST_Controller::prepare_item_for_response(). 2021-09-09 18:36:57 +00:00
class-wp-rest-controller.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:59:02 +00:00
class-wp-rest-global-styles-controller.php REST API: Fire wp_after_insert_post later in new post object endpoints. 2021-11-30 01:10:08 +00:00
class-wp-rest-menu-items-controller.php REST API: Fire wp_after_insert_post later in new post object endpoints. 2021-11-30 01:10:08 +00:00
class-wp-rest-menu-locations-controller.php REST API: Introduce Menu management endpoints. 2021-11-09 19:00:01 +00:00
class-wp-rest-menus-controller.php REST API: Introduce Menu management endpoints. 2021-11-09 19:00:01 +00:00
class-wp-rest-pattern-directory-controller.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
class-wp-rest-plugins-controller.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:59:02 +00:00
class-wp-rest-post-statuses-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:16:58 +00:00
class-wp-rest-post-types-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:16:58 +00:00
class-wp-rest-posts-controller.php REST API: Introduce Menu management endpoints. 2021-11-09 19:00:01 +00:00
class-wp-rest-revisions-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:16:58 +00:00
class-wp-rest-search-controller.php Code Modernization: Fix parameter name mismatches for parent/child classes in WP_REST_Controller::prepare_item_for_response(). 2021-09-09 18:36:57 +00:00
class-wp-rest-settings-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
class-wp-rest-sidebars-controller.php REST API: Allow sidebars and their widgets to be public. 2021-11-05 02:15:59 +00:00
class-wp-rest-site-health-controller.php Security, Site Health: Improve accuracy in messaging about HTTPS support. 2021-01-29 19:10:58 +00:00
class-wp-rest-taxonomies-controller.php Docs: Add a @since note for the rest_namespace argument of register_post_type() and register_taxonomy(). 2021-11-01 14:31:00 +00:00
class-wp-rest-templates-controller.php REST API: Fire wp_after_insert_post later in new post object endpoints. 2021-11-30 01:10:08 +00:00
class-wp-rest-terms-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:59:02 +00:00
class-wp-rest-themes-controller.php Update @wordpress packages 2021-11-30 00:24:27 +00:00
class-wp-rest-url-details-controller.php REST API: Improve translations, comments, and readability in URL Details endpoint. 2021-11-04 12:44:01 +00:00
class-wp-rest-users-controller.php Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9 2021-11-09 02:17:17 +00:00
class-wp-rest-widget-types-controller.php Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9 2021-11-09 02:17:17 +00:00
class-wp-rest-widgets-controller.php Docs: Various corrections and improvements relating to types used in inline documentation. 2021-11-18 13:50:05 +00:00