[wp-trac] [WordPress Trac] #25258: Notices when no items in nav menu

WordPress Trac noreply at wordpress.org
Mon Sep 9 11:28:11 UTC 2013

#25258: Notices when no items in nav menu
 Reporter:  mordauk            |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Menus              |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
Changes (by SergeyBiryukov):

 * keywords:  needs-patch => reporter-feedback


 Could not reproduce on a clean install:
 1. If there are no menu items, `wp_nav_menu()` falls back to
 `wp_page_menu()` by default: [[BR]][source:tags/3.6/wp-includes/nav-menu-
 2. If I specify an empty `fallback_cb` parameter to disable the default
 fallback, then the walker is called via `walk_nav_menu_tree()`, but it
 bails out early if there are no items: [[BR]][source:tags/3.6/wp-includes

 Tested in both 3.6 and current trunk. Could you provide the exact steps to

Ticket URL: <http://core.trac.wordpress.org/ticket/25258#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list