mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user