From 0c1aa59ac502824f749e26e3888afaca5126f448 Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Fri, 19 Jul 2019 16:12:18 +0200
Subject: [PATCH] Simplify wp_terms_checklist()

---
 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 9c6a48d019..ca89f28907 100644
--- a/src/wp-admin/includes/template.php
+++ b/src/wp-admin/includes/template.php
@@ -169,10 +169,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 ( $r['echo'] ) {
 		echo $output;
-- 
2.21.0.windows.1

