Skip to:
Content

BuddyPress.org

Changeset 5233


Ignore:
Timestamp:
10/10/2011 08:37:04 PM (13 years ago)
Author:
djpaul
Message:

Update get_user_by_email calls to get_user_by; deprecated in WP 3.3

Location:
trunk
Files:
3 edited

Legend:

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

    r4971 r5233  
    229229
    230230    // Get the user_id from the comment author email.
    231     $user    = get_user_by_email( $recorded_comment->comment_author_email );
     231    $user    = get_user_by( 'email', $recorded_comment->comment_author_email );
    232232    $user_id = (int)$user->ID;
    233233
  • trunk/bp-core/bp-core-avatars.php

    r4907 r5233  
    585585
    586586    // 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 ) ) )
    588588        $id = $user_by_email->ID;
    589589
  • trunk/bp-members/bp-members-functions.php

    r5036 r5233  
    446446 * @param $email str The email address for the user.
    447447 * @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 address
     448 * @uses get_user_by() WordPress function to get userdata via an email address
    449449 * @return str The link to the users home base. False on no match.
    450450 */
    451451function bp_core_get_userlink_by_email( $email ) {
    452     $user = get_user_by_email( $email );
     452    $user = get_user_by( 'email', $email );
    453453    return apply_filters( 'bp_core_get_userlink_by_email', bp_core_get_userlink( $user->ID, false, false, true ) );
    454454}
Note: See TracChangeset for help on using the changeset viewer.