Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/03/2014 09:17:51 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Use correct $exclude variable (rather than $r) in BP_Core_User::get_users_by_letter(). Fixes ability to query for users by letter and also exclude certain users.

Querying for users by letter has not been used in BuddyPress's template parts since 1.2, but is still actively supported for other plugins and themes to use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-classes.php

    r8557 r8558  
    10901090
    10911091        if ( !empty( $exclude ) ) {
    1092             $exclude     = implode( ',', wp_parse_id_list( $r['exclude'] ) );
     1092            $exclude     = implode( ',', wp_parse_id_list( $exclude ) );
    10931093            $exclude_sql = " AND u.id NOT IN ({$exclude})";
    10941094        } else {
Note: See TracChangeset for help on using the changeset viewer.