[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:42:52 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 mbootsman):
Andrew, thanks for your reply.
I realize the naming is a bit confusing, but I get that ;)
Since I am using Genesis, and added the unregister_nav_menu to the init
hook, I have tested this with twentyfourteen too to filter out theme-
specific code. And it gives the same result.
Let me clarify by the following steps, using the twentyfourteen theme:
- Create a menu
- Assign menu to both primary and secondary locations via Appearance -
Menus
- View frontpage, this will show the same menu on the primary/secondary
location
- Edit functions.php and add unregister_nav_menu( 'secondary' );
- Refresh frontpage, this will show both menu locations filled with the
created menu
- Refresh the Appearance - Menus locations tab, this only shows Primary
location
I don't know if this a bug or as-designed, but I just doesn't feel right.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27735#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list