Ticket #37866: 37866.diff
File 37866.diff, 713 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/ms-functions.php
96 96 * The count is cached and updated twice daily. This is not a live count. 97 97 * 98 98 * @since MU 2.7 99 * @since 4.7.0 The $network_id parameter has been added. 99 100 * 101 * @param int $network_id ID of the network. Can be null to default to the current network ID. Default null. 100 102 * @return int 101 103 */ 102 function get_user_count( ) {103 return get_ site_option('user_count' );104 function get_user_count( $network_id = null ) { 105 return get_network_option( $network_id, 'user_count' ); 104 106 } 105 107 106 108 /**