Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/30/2010 04:46:15 PM (14 years ago)
Author:
boonebgorges
Message:

Adds filters to groups and activities queries to parallel members component. Fixes #2774

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-classes.php

    r3580 r3617  
    143143        }
    144144
    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 );
    146148
    147149        // 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.