WordPress.org

Make WordPress Core

Ticket #14142: nav-menu-template.diff

File nav-menu-template.diff, 572 bytes (added by dennis.winter, 4 years ago)

Diff file

  • nav-menu-template.php

     
    441441 * @see Walker::walk() for parameters and return description. 
    442442 */ 
    443443function walk_nav_menu_tree( $items, $depth, $r ) { 
    444         $walker = ( empty($r->walker) ) ? new Walker_Nav_Menu : $r->walker; 
     444        $walker = ( empty($r->walker) ) ? new Walker_Nav_Menu : new $r->walker; 
    445445        $args = array( $items, $depth, $r ); 
    446446 
    447447        return call_user_func_array( array(&$walker, 'walk'), $args );