From 0150a523795c0fb415df020c685d6b6bb708d9b1 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 29 Sep 2015 22:38:12 +0000 Subject: [PATCH] Users: Add the default arguments array as a second parameter to the `wp_dropdown_users_args` filter, introduced in [34692]. Adjust hook doc descriptions accordingly. See #19867. git-svn-id: https://develop.svn.wordpress.org/trunk@34705 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/user-functions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/user-functions.php b/src/wp-includes/user-functions.php index 225a0bc128..002d11a47a 100644 --- a/src/wp-includes/user-functions.php +++ b/src/wp-includes/user-functions.php @@ -924,13 +924,14 @@ function wp_dropdown_users( $args = '' ) { $query_args['fields'] = array( 'ID', 'user_login', $show ); /** - * Filter the arguments for user drop-down arguments before being passed into the query. + * Filter the query arguments for the user drop-down. * * @since 4.4.0 * - * @param array $query_args The default arguments for wp_dropdown_users(). + * @param array $query_args The query arguments for wp_dropdown_users(). + * @param array $r The default arguments for wp_dropdown_users(). */ - $query_args = apply_filters( 'wp_dropdown_users_args', $query_args ); + $query_args = apply_filters( 'wp_dropdown_users_args', $query_args, $r ); $users = get_users( $query_args );