Ticket #15053: get_users.diff
File get_users.diff, 1.9 KB (added by , 14 years ago) |
---|
-
wp-includes/user.php
563 563 * @uses $blog_id The Blog id of the blog for those that use more than one blog 564 564 * 565 565 * @param int $id Blog ID. 566 * @param array $args Optional query arguments passed to get_users()567 566 * @return array List of users that are part of that Blog ID 568 567 */ 569 568 function get_users_of_blog( $id = '', $args = array() ) { … … 572 571 if ( empty($id) ) 573 572 $id = (int) $blog_id; 574 573 575 $args['blog_id'] = $id; 576 return get_users( $args ); 574 return get_users( array( 'blog_id' => $id ) ); 577 575 } 578 576 579 577 /** -
wp-admin/includes/default-list-tables.php
2958 2958 case 'users': ?> 2959 2959 <td valign="top"> 2960 2960 <?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) ); 2962 2962 if ( is_array( $blogusers ) ) { 2963 2963 $blogusers_warning = ''; 2964 2964 if ( count( $blogusers ) > 5 ) { -
wp-admin/network/sites.php
257 257 <?php } 258 258 259 259 // Site users 260 $blogusers = get_users _of_blog( $id, array('number' => 20) );260 $blogusers = get_users( array( 'blog_id' => $id, 'number' => 20 ) ); 261 261 if ( is_array( $blogusers ) ) { 262 262 echo '<div id="blogedit_blogusers" class="postbox"><h3 class="hndle"><span>' . __( 'Site Users' ) . '</span></h3><div class="inside">'; 263 263 echo '<table class="form-table">';