Opened 14 years ago
Closed 14 years ago
#13690 closed defect (bug) (fixed)
has_nav_menu falsely returns true
Reported by: | kretzschmar | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Menus | Keywords: | has_nav_menu |
Focuses: | Cc: |
Description
If a user deletes a custom nav menu, the new has_nav_menu() function returns true.
Change History (2)
Note: See
TracTickets for help on using
tickets.
I imagine this might be due to the fact that we're not clearing out the nav menu locations theme mod on delete. If you then save any menu IIRC the code should then reset the theme mod and all should be well with the world.