[wp-trac] [WordPress Trac] #14527: ajax call for add-menu-item doesnt supprot wp_edit_nav_menu_walker filter
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 4 04:48:03 UTC 2010
#14527: ajax call for add-menu-item doesnt supprot wp_edit_nav_menu_walker filter
----------------------------+-----------------------------------------------
Reporter: wonderslug | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.0.1
Severity: normal | Keywords: nav_menu walker
----------------------------+-----------------------------------------------
The wp_get_nav_menu_to_edit function (wp-admin/includes/nav-menu.php)
supports a filter on the wp_edit_nav_menu_walker in order for plugins to
pass a different walker class to the menu item admin.
The ajax call (add-menu-item) supporting the creation of a new menu-item
that uses this same walker is not supporting the filter.
In order to make it so that both and and existing menu items support are
calling the same walker to get the html for menu items this filter need to
be added to the ajax.
I am attaching a patch that works.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14527>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list