Skip to:
Content

BuddyPress.org

Changeset 3224


Ignore:
Timestamp:
08/29/2010 12:36:27 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Add filters to get_users query. Fixes #2593. Props boonebgorges.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-classes.php

    r3180 r3224  
    191191
    192192        /* Get paginated results */
    193         $paged_users = $wpdb->get_results( join( ' ', (array)$sql ) );
     193        $paged_users_sql = apply_filters( 'bp_core_get_paged_users_sql', join( ' ', (array)$sql ), $sql );
     194        $paged_users     = $wpdb->get_results( $paged_users_sql );
    194195
    195196        /* Re-jig the SQL so we can get the total user count */
     
    211212
    212213        /* Get total user results */
    213         $total_users = $wpdb->get_var( join( ' ', (array)$sql ) );
     214        $total_users_sql = apply_filters( 'bp_core_get_total_users_sql', join( ' ', (array)$sql ), $sql );
     215        $total_users     = $wpdb->get_var( $total_users_sql );
    214216
    215217        /***
Note: See TracChangeset for help on using the changeset viewer.