Revert get_users_of_blog() to 3.0 behavior and deprecate. Use get_users() in core. Props scribu. fixes #15854

git-svn-id: https://develop.svn.wordpress.org/trunk@17084 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-12-20 16:25:35 +00:00
parent 15efc0fa0a
commit 76e77b1790
4 changed files with 29 additions and 24 deletions

View File

@@ -618,26 +618,6 @@ function get_users( $args = array() ) {
return (array) $user_search->get_results();
}
/**
* Get users for the blog.
*
* For setups that use the multi-blog feature. Can be used outside of the
* multi-blog feature.
*
* @since 2.2.0
* @uses get_users() for queries
* @uses $blog_id The Blog id of the blog for those that use more than one blog
*
* @param int $id Blog ID.
* @return array List of users that are part of that Blog ID
*/
function get_users_of_blog( $id = '' ) {
if ( empty( $id ) )
$id = get_current_blog_id();
return get_users( array( 'blog_id' => $id ) );
}
/**
* Get the blogs a user belongs to.
*