mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Code Modernisation: Replace call_user_func_array()
in wp-admin/includes/template.php
with a dynamic function call.
Props jrf. See #47678. Built from https://develop.svn.wordpress.org/trunk@46137 git-svn-id: http://core.svn.wordpress.org/trunk@45949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7c370fa9d0
commit
f166554882
@ -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;
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-46136';
|
||||
$wp_version = '5.3-alpha-46137';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user