[wp-trac] [WordPress Trac] #32781: Customizer Menus: Debug Notices

WordPress Trac noreply at wordpress.org
Wed Jun 24 14:44:26 UTC 2015


#32781: Customizer Menus: Debug Notices
-----------------------------+-------------------
 Reporter:  johnjamesjacoby  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  4.3
Component:  Menus            |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-------------------
 Since r32806, I'm seeing this in my customizer:

 {{{
 Notice: Undefined property: stdClass::$fallback_cb in /srv/www/wordpress-
 develop/src/wp-includes/nav-menu-template.php on line 311
 }}}

 Using a pretty standard approach to menus:
 {{{
 wp_nav_menu( array(
         'theme_location' => 'primary',
         'container'      => false,
         'menu_class'     => 'nav navbar-nav',
         'walker'         => new Bootstrap_Nav_Menu(),
         'fallback_cb'    => '' // @todo
 ) );
 }}}

 This worked without a debug notice previous to r32806.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32781>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list