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.

Built from https://develop.svn.wordpress.org/trunk@34705


git-svn-id: http://core.svn.wordpress.org/trunk@34669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-09-29 22:39:25 +00:00
parent db880777f4
commit 492c11508a
2 changed files with 5 additions and 4 deletions

View File

@ -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 );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34704';
$wp_version = '4.4-alpha-34705';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.