Make WordPress Core


Ignore:
Timestamp:
12/20/2010 04:25:35 PM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r17034 r17084  
    620620
    621621/**
    622  * Get users for the blog.
    623  *
    624  * For setups that use the multi-blog feature. Can be used outside of the
    625  * multi-blog feature.
    626  *
    627  * @since 2.2.0
    628  * @uses get_users() for queries
    629  * @uses $blog_id The Blog id of the blog for those that use more than one blog
    630  *
    631  * @param int $id Blog ID.
    632  * @return array List of users that are part of that Blog ID
    633  */
    634 function get_users_of_blog( $id = '' ) {
    635     if ( empty( $id ) )
    636         $id = get_current_blog_id();
    637 
    638     return get_users( array( 'blog_id' => $id ) );
    639 }
    640 
    641 /**
    642622 * Get the blogs a user belongs to.
    643623 *
Note: See TracChangeset for help on using the changeset viewer.