[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:21:05 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          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 When setting a menu on the primary or secondary locations the menu's are
 displayed according to the theme specs. When removing the menu location
 with unregister_nav_menu, the menu is still displayed on the front, but
 cannot be edited in the back-end, since we just unregistered it.

 Desired behavior would be: Do not display an unregistered menu location,
 even if it has been set with a menu previously.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27735>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list