WordPress.org

Make WordPress Core

Ticket #15599: 15599.diff

File 15599.diff, 713 bytes (added by PeteMall, 7 years ago)
  • wp-includes/update.php

     
    4444        else
    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
    5759        $local_package = isset( $wp_local_package )? $wp_local_package : '';