[wp-trac] [WordPress Trac] #27735: unregister_nav_menu leaves menu visible after it has been set
WordPress Trac
noreply at wordpress.org
Wed Apr 9 13:29:24 UTC 2014
#27735: unregister_nav_menu leaves menu visible after it has been set
--------------------------+------------------------------
Reporter: mbootsman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.8.1
Severity: normal | Resolution:
Keywords: | Focuses: administration
--------------------------+------------------------------
Comment (by nacin):
Hi mbootsman, thanks for the report. register_nav_menu() and
unregister_nav_menu() actually is for registering "locations", despite the
slightly more generic name. If unregister_nav_menu() isn't removing the
menu, then it sounds like one of two things:
* The call to wp_nav_menu() on the front-end is wrong and is allowing the
second menu to be displayed, such as by specifically specifying a menu or
by not specifying a theme location.
* unregister_nav_menu() is not being called on the frontend.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27735#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list