Skip to:
Content

BuddyPress.org

Changeset 11627


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

Avatars: Add missing email condition in bp_core_get_avatar_data_url_filter()

Props lne1030.

See #7424.

File:
1 edited

Legend:

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

    r11614 r11627  
    13781378    if ( is_numeric( $id_or_email ) ) {
    13791379        $user = get_user_by( 'id', absint( $id_or_email ) );
     1380    } elseif ( is_string( $id_or_email ) ) {
     1381        $user = get_user_by( 'email', $id_or_email );
    13801382    } elseif ( $id_or_email instanceof WP_User ) {
    13811383        // User Object
Note: See TracChangeset for help on using the changeset viewer.