WordPress.org

Make WordPress Core

Changeset 15882


Ignore:
Timestamp:
10/21/2010 01:08:47 PM (10 years ago)
Author:
ryan
Message:

Use get_users() instead of get_users_of_blog(). Props scribu. see #15053

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/default-list-tables.php

    r15876 r15882  
    29592959                        <td valign="top">
    29602960                            <?php
    2961                             $blogusers = get_users_of_blog( $blog['blog_id'], array('number' => 6) );
     2961                            $blogusers = get_users( array( 'blog_id' => $blog['blog_id'], 'number' => 6) );
    29622962                            if ( is_array( $blogusers ) ) {
    29632963                                $blogusers_warning = '';
  • trunk/wp-admin/network/sites.php

    r15876 r15882  
    258258
    259259                // Site users
    260                 $blogusers = get_users_of_blog( $id, array('number' => 20) );
     260                $blogusers = get_users( array( 'blog_id' => $id, 'number' => 20 ) );
    261261                if ( is_array( $blogusers ) ) {
    262262                    echo '<div id="blogedit_blogusers" class="postbox"><h3 class="hndle"><span>' . __( 'Site Users' ) . '</span></h3><div class="inside">';
  • trunk/wp-includes/user.php

    r15876 r15882  
    564564 *
    565565 * @param int $id Blog ID.
    566  * @param array $args Optional query arguments passed to get_users()
    567566 * @return array List of users that are part of that Blog ID
    568567 */
     
    573572        $id = (int) $blog_id;
    574573
    575     $args['blog_id'] = $id;
    576     return get_users( $args );
     574    return get_users( array( 'blog_id' => $id ) );
    577575}
    578576
Note: See TracChangeset for help on using the changeset viewer.