Changeset 40485 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 04/20/2017 12:13:41 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/ms-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r40484 r40485 2355 2355 * 2356 2356 * @since 3.7.0 2357 * @since 4.8.0 The $network_id parameter has been added. 2357 2358 * 2358 2359 * @global wpdb $wpdb WordPress database abstraction object. 2359 */ 2360 function wp_update_network_user_counts() { 2360 * 2361 * @param int|null $network_id ID of the network. Default is the current network. 2362 */ 2363 function wp_update_network_user_counts( $network_id = null ) { 2361 2364 global $wpdb; 2362 2365 2363 2366 $count = $wpdb->get_var( "SELECT COUNT(ID) as c FROM $wpdb->users WHERE spam = '0' AND deleted = '0'" ); 2364 update_ site_option('user_count', $count );2367 update_network_option( $network_id, 'user_count', $count ); 2365 2368 } 2366 2369
Note: See TracChangeset
for help on using the changeset viewer.