Make WordPress Core

Ticket #37866: 37866.2.diff

File 37866.2.diff, 741 bytes (added by flixos90, 8 years ago)
  • src/wp-includes/ms-functions.php

     
    9696 * The count is cached and updated twice daily. This is not a live count.
    9797 *
    9898 * @since MU 2.7
     99 * @since 4.8.0 The $network_id parameter has been added.
    99100 *
    100  * @return int
     101 * @param int|null $network_id ID of the network. Default is the current network.
     102 * @return int Number of active users on the network.
    101103 */
    102 function get_user_count() {
    103         return get_site_option( 'user_count' );
     104function get_user_count( $network_id = null ) {
     105        return get_network_option( $network_id, 'user_count' );
    104106}
    105107
    106108/**