Skip to:
Content

BuddyPress.org


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.