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:
parent
db880777f4
commit
492c11508a
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue