[wp-trac] [WordPress Trac] #54536: Use rest_get_route_for_taxonomy_items and rest_get_route_for_post_type_items functions in full edit editting

WordPress Trac noreply at wordpress.org
Tue Nov 30 01:08:19 UTC 2021


#54536: Use rest_get_route_for_taxonomy_items and
rest_get_route_for_post_type_items functions in full edit editting
------------------------------+----------------------------
 Reporter:  spacedmonkey      |       Owner:  peterwilsoncc
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.9
Component:  REST API          |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  rest-api
------------------------------+----------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52276" 52276]:
 {{{
 #!CommitTicketReference repository="" revision="52276"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54536#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list