mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-19 21:15:23 +00:00
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