WordPress.org

Make WordPress Core

Changeset 16604


Ignore:
Timestamp:
11/29/2010 05:27:01 AM (7 years ago)
Author:
nacin
Message:

Use get_user_count() if multisite in wp_version_check. props PeteMall, fixes #15599.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/update.php

    r15872 r16604  
    4545        $mysql_version = 'N/A';
    4646
    47     $num_blogs = 1;
    48     $wp_install = home_url( '/' );
    49     $multisite_enabled = 0;
    50     $user_count = count_users( );
    5147    if ( is_multisite( ) ) {
     48        $user_count = get_user_count( );
    5249        $num_blogs = get_blog_count( );
    5350        $wp_install = network_site_url( );
    5451        $multisite_enabled = 1;
     52    } else {
     53        $user_count = count_users( );
     54        $multisite_enabled = 0;
     55        $num_blogs = 1;
     56        $wp_install = home_url( '/' );
    5557    }
    5658
Note: See TracChangeset for help on using the changeset viewer.