Skip to:
Content

BuddyPress.org

Ticket #4041: bp-activity-classes.php.patch

File bp-activity-classes.php.patch, 915 bytes (added by webraket, 13 years ago)
  • bp-activity-classes.php

     
    165165                        $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 ) );
    166166                }
    167167
    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 );
    169169
    170170                $total_activities = $wpdb->get_var( $total_activities_sql );
    171171