WordPress.org

Make WordPress Core

Changeset 34705


Ignore:
Timestamp:
09/29/2015 10:38:12 PM (5 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user-functions.php

    r34692 r34705  
    925925
    926926    /**
    927      * Filter the arguments for user drop-down arguments before being passed into the query.
     927     * Filter the query arguments for the user drop-down.
    928928     *
    929929     * @since 4.4.0
    930930     *
    931      * @param array $query_args The default arguments for wp_dropdown_users().
    932      */
    933     $query_args = apply_filters( 'wp_dropdown_users_args', $query_args );
     931     * @param array $query_args The query arguments for wp_dropdown_users().
     932     * @param array $r          The default arguments for wp_dropdown_users().
     933     */
     934    $query_args = apply_filters( 'wp_dropdown_users_args', $query_args, $r );
    934935
    935936    $users = get_users( $query_args );
Note: See TracChangeset for help on using the changeset viewer.