Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#13690 closed defect (bug) (fixed)

has_nav_menu falsely returns true

Reported by: kretzschmar's profile kretzschmar Owned by: nacin's profile 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)

#1 @nacin
14 years ago

  • Owner set to nacin
  • Status changed from new to reviewing

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.

#2 @nacin
14 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

(In [15100]) Clear nav menu from menu locations on delete. Additional sanity checks. fixes #13690.

Note: See TracTickets for help on using tickets.