[wp-trac] [WordPress Trac] #16605: wp_nav_menu fallback_cb argument ignored with using menu argument

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 21 04:53:23 UTC 2011


#16605: wp_nav_menu fallback_cb argument ignored with using menu argument
--------------------------+-------------------------------------
 Reporter:  jonkirkman    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:  3.0.1
 Severity:  normal        |   Keywords:  needs-patch 2nd-opinion
--------------------------+-------------------------------------
 wp_nav_menu ignores the fallback_cb argument when also using the menu
 argument.

 If this is the expected behavior, it should be documented as it isn't
 intuitive.

 This fails to honor the fallback_cb -
 {{{
 wp_nav_menu(array('menu' => 'mymenu', 'container' => 'false',
 'fallback_cb' => ''));
 }}}
 This works as expected -
 {{{
 wp_nav_menu(array('theme_location' => 'mylocation', 'container' =>
 'false', 'fallback_cb' => ''));
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16605>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list