Ticket #4041: bp-activity-classes.php.patch
File bp-activity-classes.php.patch, 915 bytes (added by , 13 years ago) |
---|
-
bp-activity-classes.php
165 165 $activities = $wpdb->get_results( apply_filters( 'bp_activity_get_user_join_filter', $wpdb->prepare( "{$select_sql} {$from_sql} {$where_sql} ORDER BY a.date_recorded {$sort}" ), $select_sql, $from_sql, $where_sql, $sort ) ); 166 166 } 167 167 168 $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);168 $total_activities_sql = apply_filters( 'bp_activity_total_activities_sql', $wpdb->prepare( "SELECT count(a.id) FROM {$bp->activity->table_name} a {$where_sql}" ), $where_sql ); 169 169 170 170 $total_activities = $wpdb->get_var( $total_activities_sql ); 171 171