Use site objects rather than get_blog_status() in MS list tables.

Removes several repetitive calls to `get_blog_status()` that are not needed, as the data is already available as part of each site's object.

Fixes #32512.


git-svn-id: https://develop.svn.wordpress.org/trunk@32630 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt
2015-05-27 23:13:04 +00:00
parent 266a7f2f9d
commit b1e80f0388
3 changed files with 29 additions and 19 deletions

View File

@@ -1176,6 +1176,7 @@ function get_blogs_of_user( $user_id, $all = false ) {
'site_id' => $blog->site_id,
'siteurl' => $blog->siteurl,
'archived' => $blog->archived,
'mature' => $blog->mature,
'spam' => $blog->spam,
'deleted' => $blog->deleted,
);
@@ -1205,6 +1206,7 @@ function get_blogs_of_user( $user_id, $all = false ) {
'site_id' => $blog->site_id,
'siteurl' => $blog->siteurl,
'archived' => $blog->archived,
'mature' => $blog->mature,
'spam' => $blog->spam,
'deleted' => $blog->deleted,
);