Opened 11 years ago
Closed 11 years ago
#32512 closed enhancement (fixed)
Reuse site objects in MS user and site list tables rather than calling get_blog_status()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.3 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Networks and Sites | Keywords: | has-patch |
| Focuses: | multisite | Cc: |
Description
In class-wp-ms-users-list-table.php and class-wp-ms-sites-list-table.php, we loop through sites and use get_blog_status() to determine if each is archived, spam, mature, or deleted.
As highlighted in #32281, this data is available from the database as part of the site object and can be reused.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
32512.diff
get_blog_status()from both the sites and users MS list table.matureas a property when retrieving site objects fromget_blogs_of_users().Core's only other use of
get_blog_status()is inis_archived(), which we may be able to deprecate.