Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/30/2012 02:36:00 PM (11 years ago)
Author:
djpaul
Message:

Add username parameter to bp_core_get_userid filter. Fixes #4587, props borkweb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-functions.php

    r6449 r6476  
    192192        return false;
    193193
    194     return apply_filters( 'bp_core_get_userid', $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->users WHERE user_login = %s", $username ) ) );
     194    return apply_filters( 'bp_core_get_userid', $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->users WHERE user_login = %s", $username ) ), $username );
    195195}
    196196
Note: See TracChangeset for help on using the changeset viewer.