[wp-trac] [WordPress Trac] #34657: WordPress doesn't set object terms for menu items so pending items not working (was: Wordpress doesn't set object terms for menu items so pending items not working)

WordPress Trac noreply at wordpress.org
Thu Nov 12 01:45:27 UTC 2015


#34657: WordPress doesn't set object terms for menu items so pending items not
working
--------------------------+------------------------------
 Reporter:  rss_samuel    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  4.3.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> When I create menu items and refresh admin page without saving menu,
> wordpress can not show pending menu items.
>
> At line 1127 of 'wp-admin/includes/ajax-functions.php' file there is
> wp_save_nav_menu_items function, the first argument for this function
> '''is always zero''', so At line 441 of 'wp-includes/nav-menu.php' file
> wp_set_object_terms function doesn't work.
>
> I add my menu id to
>
> {{{
> $item_ids = wp_save_nav_menu_items( 97, $menu_items_data );
> }}}
>
>  function, and it working for me. :)

New description:

 When I create menu items and refresh admin page without saving menu,
 wordpress can not show pending menu items.

 At line 1127 of 'wp-admin/includes/ajax-functions.php' file there is
 wp_save_nav_menu_items function, the first argument for this function
 '''is always zero''', so At line 441 of 'wp-includes/nav-menu.php' file
 wp_set_object_terms function doesn't work.

 I add my menu id to

 {{{
 $item_ids = wp_save_nav_menu_items( 97, $menu_items_data );
 }}}

 function, and it working for me. :)

--

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


More information about the wp-trac mailing list