Ticket #20854: 20854.diff
| File 20854.diff, 753 bytes (added by kobenland, 13 months ago) |
|---|
-
wp-includes/ms-functions.php
1975 1975 global $wpdb; 1976 1976 1977 1977 $count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(blog_id) as c FROM $wpdb->blogs WHERE site_id = %d AND spam = '0' AND deleted = '0' and archived = '0'", $wpdb->siteid) ); 1978 update_site_option( 'blog_count', $count);1978 update_site_option( 'blog_count', absint( $count ) ); 1979 1979 1980 1980 $count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(ID) as c FROM $wpdb->users WHERE spam = '0' AND deleted = '0'") ); 1981 update_site_option( 'user_count', $count);1981 update_site_option( 'user_count', absint( $count ) ); 1982 1982 }