mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user