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: | jeremyfelt | Owned by: | jeremyfelt |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Networks and Sites | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | multisite |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.