Changeset 5987 for trunk/bp-core/bp-core-template.php
- Timestamp:
- 04/13/2012 04:31:51 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template.php
r5942 r5987 503 503 add_filter( 'bp_create_excerpt', 'force_balance_tags' ); 504 504 505 /** 506 * Echoes the output of bp_get_total_member_count() 507 */ 505 508 function bp_total_member_count() { 506 509 echo bp_get_total_member_count(); 507 510 } 511 /** 512 * Returns the total member count in your BP instance 513 * 514 * Since BuddyPress 1.6, this function has used bp_core_get_active_member_count(), which 515 * counts non-spam, non-deleted users who have last_activity. This value will correctly 516 * match the total member count number used for pagination on member directories. 517 * 518 * Before BuddyPress 1.6, this function used bp_core_get_total_member_count(), which did 519 * not take into account last_activity, and thus often resulted in higher counts than 520 * shown by member directory pagination. 521 */ 508 522 function bp_get_total_member_count() { 509 return apply_filters( 'bp_get_total_member_count', bp_core_get_ total_member_count() );523 return apply_filters( 'bp_get_total_member_count', bp_core_get_active_member_count() ); 510 524 } 511 525 add_filter( 'bp_get_total_member_count', 'bp_core_number_format' );
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)