WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/20/2010 08:43:32 PM (11 years ago)
Author:
ryan
Message:

Add query args argument to get_users_of_blog(). Limit number of users fetched for user lists in sites table and edit blog form. see #15053

File:
1 edited

Legend:

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

    r15873 r15876  
    564564 *
    565565 * @param int $id Blog ID.
     566 * @param array $args Optional query arguments passed to get_users()
    566567 * @return array List of users that are part of that Blog ID
    567568 */
    568 function get_users_of_blog( $id = '' ) {
     569function get_users_of_blog( $id = '', $args = array() ) {
    569570    global $blog_id;
    570571
     
    572573        $id = (int) $blog_id;
    573574
    574     return get_users( array( 'blog_id' => $id ) );
     575    $args['blog_id'] = $id;
     576    return get_users( $args );
    575577}
    576578
Note: See TracChangeset for help on using the changeset viewer.