Skip to:
Content

BuddyPress.org

Changeset 11628


Ignore:
Timestamp:
07/07/2017 06:25:30 PM (2 years ago)
Author:
r-a-y
Message:

Avatars: After r11627, switch from using is_string() to is_email()

See #7424.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-avatars.php

    r11627 r11628  
    13781378    if ( is_numeric( $id_or_email ) ) {
    13791379        $user = get_user_by( 'id', absint( $id_or_email ) );
    1380     } elseif ( is_string( $id_or_email ) ) {
     1380    } elseif ( is_email( $id_or_email ) ) {
    13811381        $user = get_user_by( 'email', $id_or_email );
    13821382    } elseif ( $id_or_email instanceof WP_User ) {
Note: See TracChangeset for help on using the changeset viewer.