Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#13690 closed defect (bug) (fixed)

has_nav_menu falsely returns true

Reported by: kretzschmar Owned by: nacin
Priority: normal Milestone: 3.0
Component: Menus Version: 3.0
Severity: normal Keywords: has_nav_menu
Cc: Focuses:

Description

If a user deletes a custom nav menu, the new has_nav_menu() function returns true.

Change History (2)

#1 @nacin
16 years ago

  • Owner set to nacin
  • Status new → 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
16 years ago

  • Resolution → fixed
  • Status reviewing → closed

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

Note: See TracTickets for help on using tickets.