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

git-svn-id: https://develop.svn.wordpress.org/trunk@15882 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-10-21 13:08:47 +00:00
parent c4d5a5e4a6
commit 682376a2ae
3 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -563,7 +563,6 @@ function get_users( $args = array() ) {
* @uses $blog_id The Blog id of the blog for those that use more than one blog
*
* @param int $id Blog ID.
* @param array $args Optional query arguments passed to get_users()
* @return array List of users that are part of that Blog ID
*/
function get_users_of_blog( $id = '', $args = array() ) {
@@ -572,8 +571,7 @@ function get_users_of_blog( $id = '', $args = array() ) {
if ( empty($id) )
$id = (int) $blog_id;
$args['blog_id'] = $id;
return get_users( $args );
return get_users( array( 'blog_id' => $id ) );
}
/**