WordPress.org

Make WordPress Core

Changeset 46134


Ignore:
Timestamp:
09/15/2019 11:30:25 AM (2 months ago)
Author:
SergeyBiryukov
Message:

Code Modernisation: Replace call_user_func_array() in wp-includes/nav-menu-template.php with a dynamic function call.

Props jrf.
See #47678.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu-template.php

    r45739 r46134  
    580580function walk_nav_menu_tree( $items, $depth, $r ) {
    581581    $walker = ( empty( $r->walker ) ) ? new Walker_Nav_Menu : $r->walker;
    582     $args   = array( $items, $depth, $r );
    583 
    584     return call_user_func_array( array( $walker, 'walk' ), $args );
     582
     583    return $walker->walk( $items, $depth, $r );
    585584}
    586585
Note: See TracChangeset for help on using the changeset viewer.