Changeset 3617 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 12/30/2010 04:46:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r3580 r3617 143 143 } 144 144 145 $total_activities = $wpdb->get_var( $wpdb->prepare( "SELECT count(a.id) FROM {$bp->activity->table_name} a {$where_sql} ORDER BY a.date_recorded {$sort}" ) ); 145 $total_activities_sql = apply_filters( 'bp_activity_total_activities_sql', $wpdb->prepare( "SELECT count(a.id) FROM {$bp->activity->table_name} a {$where_sql} ORDER BY a.date_recorded {$sort}" ), $where_sql, $sort ); 146 147 $total_activities = $wpdb->get_var( $total_activities_sql ); 146 148 147 149 // Get the fullnames of users so we don't have to query in the loop
Note: See TracChangeset
for help on using the changeset viewer.