mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Provide all site flag data in objects returned by get_blogs_of_user()
Previously, `archived`, `spam`, and `deleted` properties were forced to `0` when returned by `get_blogs_of_user()`. This was originally introduced in [21794] as a way to prevent notices when properties were expected. Instead, we can properly fill these properties with those retrieved from `get_blog_details()`. Props realloc. Fixes #32281. git-svn-id: https://develop.svn.wordpress.org/trunk@32626 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1175,9 +1175,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
|
||||
'archived' => $blog->archived,
|
||||
'spam' => $blog->spam,
|
||||
'deleted' => $blog->deleted,
|
||||
);
|
||||
}
|
||||
unset( $keys[ $wpdb->base_prefix . 'capabilities' ] );
|
||||
@@ -1204,9 +1204,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
|
||||
'archived' => $blog->archived,
|
||||
'spam' => $blog->spam,
|
||||
'deleted' => $blog->deleted,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user