Skip to:
Content

BuddyPress.org

Ticket #4587: bp-members-functions.diff

File bp-members-functions.diff, 573 bytes (added by borkweb, 12 years ago)
  • bp-members-functions.php

     
    191191        if ( empty( $username ) )
    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
    197197/**