From 751f69be42284b97fd3fdbe0a54ccfb662de523f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 15 Sep 2019 11:34:23 +0000 Subject: [PATCH] Code Modernisation: Replace `call_user_func_array()` in `wp-admin/includes/template.php` with a dynamic function call. Props jrf. See #47678. git-svn-id: https://develop.svn.wordpress.org/trunk@46137 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index ca23882f99..d746575225 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -176,10 +176,10 @@ function wp_terms_checklist( $post_id = 0, $args = array() ) { } // Put checked cats on top - $output .= call_user_func_array( array( $walker, 'walk' ), array( $checked_categories, 0, $args ) ); + $output .= $walker->walk( $checked_categories, 0, $args ); } // Then the rest of them - $output .= call_user_func_array( array( $walker, 'walk' ), array( $categories, 0, $args ) ); + $output .= $walker->walk( $categories, 0, $args ); if ( $parsed_args['echo'] ) { echo $output;