WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#13006 closed defect (bug) (fixed)

wp_nav_menu() should bail if no menu was found and no fallback function was specified

Reported by: ptahdunbar Owned by: ryan
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Menus Keywords: has-patch
Focuses: Cc:

Description

Patch fixes what's stated in the title.

Attachments (1)

wp_nav_menu_bail.diff (786 bytes) - added by ptahdunbar 5 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 @nacin5 years ago

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

(In [14415]) Bail when there is neither a menu, or a fallback. props ptahdunbar, fixes #13006.

Note: See TracTickets for help on using tickets.