Set the archived, spam, and deleted properties in the objects returned from get_blogs_of_user(). Props wonderboymusic. fixes #16225
git-svn-id: https://develop.svn.wordpress.org/trunk@21794 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ba6a385ac1
commit
7852fd1919
@ -673,6 +673,9 @@ function get_blogs_of_user( $user_id, $all = false ) {
|
||||
$blogs[ $blog_id ]->path = '';
|
||||
$blogs[ $blog_id ]->site_id = 1;
|
||||
$blogs[ $blog_id ]->siteurl = get_option('siteurl');
|
||||
$blogs[ $blog_id ]->archived = 0;
|
||||
$blogs[ $blog_id ]->spam = 0;
|
||||
$blogs[ $blog_id ]->deleted = 0;
|
||||
return $blogs;
|
||||
}
|
||||
|
||||
@ -688,6 +691,9 @@ function get_blogs_of_user( $user_id, $all = false ) {
|
||||
'path' => $blog->path,
|
||||
'site_id' => $blog->site_id,
|
||||
'siteurl' => $blog->siteurl,
|
||||
'archived' => 0,
|
||||
'spam' => 0,
|
||||
'deleted' => 0
|
||||
);
|
||||
}
|
||||
unset( $keys[ $wpdb->base_prefix . 'capabilities' ] );
|
||||
@ -714,6 +720,9 @@ function get_blogs_of_user( $user_id, $all = false ) {
|
||||
'path' => $blog->path,
|
||||
'site_id' => $blog->site_id,
|
||||
'siteurl' => $blog->siteurl,
|
||||
'archived' => 0,
|
||||
'spam' => 0,
|
||||
'deleted' => 0
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user