Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/09/2012 07:18:10 PM (8 years ago)
Author:
djpaul
Message:

Don't use deprecated get_user_by_email(). Fixes #3914

Location:
branches/1.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5

    • Property svn:mergeinfo changed
      /trunkmerged: 5233
  • branches/1.5/bp-core/bp-core-avatars.php

    r4907 r5626  
    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.