[wp-trac] [WordPress Trac] #27113: Explicitly assign menu term relationship in wp_update_nav_menu_item() instead of using "tax_input" argument

WordPress Trac noreply at wordpress.org
Sat Mar 15 06:06:42 UTC 2014


#27113: Explicitly assign menu term relationship in wp_update_nav_menu_item()
instead of using "tax_input" argument
------------------------------+---------------------
 Reporter:  danielbachhuber   |       Owner:  nacin
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.9
Component:  Menus             |     Version:  3.0
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"27556"]:
 {{{
 #!CommitTicketReference repository="" revision="27556"
 Explicitly assign menu term relationship rather than piggybacking on
 wp_insert_post() with the tax_input argument.

 That argument currently depends on user context (see #19373).

 Adds unit test for properly updating orphaned menu items.

 props danielbachhuber.
 fixes #27113.
 }}}

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


More information about the wp-trac mailing list