WordPress.org

Make WordPress Core

Changeset 46137


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

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

Props jrf.
See #47678.

File:
1 edited

Legend:

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

    r46088 r46137  
    177177
    178178        // Put checked cats on top
    179         $output .= call_user_func_array( array( $walker, 'walk' ), array( $checked_categories, 0, $args ) );
     179        $output .= $walker->walk( $checked_categories, 0, $args );
    180180    }
    181181    // Then the rest of them
    182     $output .= call_user_func_array( array( $walker, 'walk' ), array( $categories, 0, $args ) );
     182    $output .= $walker->walk( $categories, 0, $args );
    183183
    184184    if ( $parsed_args['echo'] ) {
Note: See TracChangeset for help on using the changeset viewer.