Changeset 5626
- Timestamp:
- 01/09/2012 07:18:10 PM (13 years ago)
- Location:
- branches/1.5
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5
-
branches/1.5/bp-blogs/bp-blogs-functions.php
r5356 r5626 237 237 238 238 // Get the user_id from the comment author email. 239 $user = get_user_by _email($recorded_comment->comment_author_email );239 $user = get_user_by( 'email', $recorded_comment->comment_author_email ); 240 240 $user_id = (int)$user->ID; 241 241 -
branches/1.5/bp-core/bp-core-avatars.php
r4907 r5626 585 585 586 586 // If passed a string and that string returns a user, get the $id 587 else if ( is_string( $user ) && ( $user_by_email = get_user_by _email($user ) ) )587 else if ( is_string( $user ) && ( $user_by_email = get_user_by( 'email', $user ) ) ) 588 588 $id = $user_by_email->ID; 589 589 -
branches/1.5/bp-members/bp-members-functions.php
r5548 r5626 446 446 * @param $email str The email address for the user. 447 447 * @uses bp_core_get_userlink() BuddyPress function to get a userlink by user ID. 448 * @uses get_user_by _email() WordPress function to get userdata via an email address448 * @uses get_user_by() WordPress function to get userdata via an email address 449 449 * @return str The link to the users home base. False on no match. 450 450 */ 451 451 function bp_core_get_userlink_by_email( $email ) { 452 $user = get_user_by _email($email );452 $user = get_user_by( 'email', $email ); 453 453 return apply_filters( 'bp_core_get_userlink_by_email', bp_core_get_userlink( $user->ID, false, false, true ) ); 454 454 }
Note: See TracChangeset
for help on using the changeset viewer.