Ticket #4587: bp-members-functions.diff
File bp-members-functions.diff, 573 bytes (added by , 12 years ago) |
---|
-
bp-members-functions.php
191 191 if ( empty( $username ) ) 192 192 return false; 193 193 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 ); 195 195 } 196 196 197 197 /**