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

Props jrf.
See #47678.

git-svn-id: https://develop.svn.wordpress.org/trunk@46135 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
SergeyBiryukov 2019-09-15 11:31:02 +00:00
parent 45827d6e7a
commit e17d5accc3

View File

@ -1524,8 +1524,7 @@ function walk_page_tree( $pages, $depth, $current_page, $r ) {
}
}
$args = array( $pages, $depth, $r, $current_page );
return call_user_func_array( array( $walker, 'walk' ), $args );
return $walker->walk( $pages, $depth, $r, $current_page );
}
/**