Skip to:
Content

BuddyPress.org

Changeset 10757


Ignore:
Timestamp:
05/14/2016 02:00:37 PM (9 years ago)
Author:
boonebgorges
Message:

After [10754], bp_get_user_has_avatar() should check against 'full' avatar.

bp_core_fetch_avatar() is now smarter about grabbing an appropriate-sized
avatar. See #7056. As such, the bp_core_fetch_avatar() check in
bp_get_user_has_avatar() should specify that the comparison will be against
a 'full' avatar, rather than the default 'thumb'.

File:
1 edited

Legend:

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

    r10754 r10757  
    16921692
    16931693    $retval = false;
    1694     if ( bp_core_fetch_avatar( array( 'item_id' => $user_id, 'no_grav' => true, 'html' => false ) ) != bp_core_avatar_default( 'local' ) )
     1694    if ( bp_core_fetch_avatar( array( 'item_id' => $user_id, 'no_grav' => true, 'html' => false, 'type' => 'full' ) ) != bp_core_avatar_default( 'local' ) )
    16951695        $retval = true;
    16961696
Note: See TracChangeset for help on using the changeset viewer.