Changeset 2617 for trunk/bp-core.php
- Timestamp:
- 02/07/2010 03:21:39 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-core.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r2576 r2617 1202 1202 global $wpdb, $bp; 1203 1203 1204 $status_sql = bp_core_get_status_sql(); 1205 1206 $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM " . CUSTOM_USER_TABLE . " WHERE {$status_sql}" ) ); 1204 if ( !$count = wp_cache_get( 'bp_total_member_count', 'bp' ) ) { 1205 $status_sql = bp_core_get_status_sql(); 1206 $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM " . CUSTOM_USER_TABLE . " WHERE {$status_sql}" ) ); 1207 } 1208 1207 1209 return apply_filters( 'bp_core_get_total_member_count', $count ); 1208 1210 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)