[wp-trac] [WordPress Trac] #13018: The fallback_cb option of wp_nav_menu is always called

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 15 17:48:52 UTC 2010


#13018: The fallback_cb option of wp_nav_menu is always called
--------------------------+-------------------------------------------------
 Reporter:  Michael       |       Owner:  ryan      
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Menus         |     Version:  3.0       
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 I find that using the following:


                 wp_nav_menu( array(
                         'sort_column'           => 'menu_order',
                         'menu'                          => 'Header Menu',
                         'container_class'       => 'headermenu',
                         'fallback_cb'           => wp_page_menu( array(
 'menu_class' => 'headermenu', 'show_home' => esc_attr(
 get_option('k2blogornoblog') ), 'depth' => 3 ) )
                         ) );


 The fallback_cb option is called regardless of whether or not it's
 supposed to. I'm not sure if I'm simply doing something wrong, as the
 whole feature seems woefully incomplete so far (no children, not use for
 the 'menu' option as far as I can tell), but I thought it was worth
 mentioning in case it actually is a bug.

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


More information about the wp-trac mailing list