Make WordPress Core

Ticket #37866: 37866.diff

File 37866.diff, 713 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.7.0 The $network_id parameter has been added.
    99100 *
     101 * @param int $network_id ID of the network. Can be null to default to the current network ID. Default null.
    100102 * @return int
    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/**