Opened 17 years ago
Closed 16 years ago
#11772 closed defect (bug) (fixed)
ms-admin.php stats should use the available cached data + count functions should exclude partially registered users/blogs from stats
| Reported by: | Denis-de-Bernardy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Multisite | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
There are two calls at the top of the file:
$c_users = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->users}");
$c_blogs = $wpdb->get_var("SELECT COUNT(blog_id) FROM {$wpdb->blogs}");
but in ms-functions.php, there are several stat functions that could be used and/or improved so that we access (at least partially) cached data.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In particular get_user_count() and get_blog_count(). Given the nature of the two strings immediately isn't safe to assume that we want the number of *active* users and blogs rather than the raw number of users -- including spammers and partially registered users.