mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
use cached data in ms-admin.php stats, props ddebernardy, fixes #11772
git-svn-id: https://develop.svn.wordpress.org/trunk@13114 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -18,8 +18,8 @@ if ( !is_super_admin() )
|
||||
wp_die( __('You do not have permission to access this page.') );
|
||||
|
||||
global $wpdb;
|
||||
$c_users = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->users}");
|
||||
$c_blogs = $wpdb->get_var("SELECT COUNT(blog_id) FROM {$wpdb->blogs}");
|
||||
$c_users = get_user_count();
|
||||
$c_blogs = get_blog_count();
|
||||
|
||||
$user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) );
|
||||
$blog_text = sprintf( _n( '%s blog', '%s blogs', $c_blogs ), number_format_i18n( $c_blogs ) );
|
||||
|
||||
Reference in New Issue
Block a user