mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
call get_users() from get_users_of_blog()
git-svn-id: https://develop.svn.wordpress.org/trunk@15566 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -471,9 +471,10 @@ class WP_User {
|
||||
*
|
||||
* @param int|string $id User's ID or username
|
||||
* @param int $name Optional. User's username
|
||||
* @param int $blog_id Optional Blog ID, defaults to current blog.
|
||||
* @return WP_User
|
||||
*/
|
||||
function WP_User( $id, $name = '' ) {
|
||||
function WP_User( $id, $name = '', $blog_id = '' ) {
|
||||
|
||||
if ( empty( $id ) && empty( $name ) )
|
||||
return;
|
||||
@@ -496,7 +497,7 @@ class WP_User {
|
||||
}
|
||||
|
||||
$this->id = $this->ID;
|
||||
$this->_init_caps();
|
||||
$this->for_blog( $blog_id );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user