Skip to:
Content

BuddyPress.org

Ticket #5380: 5380.diff

File 5380.diff, 656 bytes (added by imath, 6 years ago)
  • bp-core/bp-core-avatars.php

    diff --git bp-core/bp-core-avatars.php bp-core/bp-core-avatars.php
    index a18b858..08881f5 100644
    function bp_get_user_has_avatar( $user_id = 0 ) { 
    10151015                $user_id = bp_displayed_user_id();
    10161016
    10171017        $retval = false;
    1018         if ( bp_core_fetch_avatar( array( 'item_id' => $user_id, 'no_grav' => true, 'html' => false ) ) != bp_core_avatar_default() )
     1018        if ( bp_core_fetch_avatar( array( 'item_id' => $user_id, 'no_grav' => true, 'html' => false ) ) != bp_core_avatar_default( 'local' ) )
    10191019                $retval = true;
    10201020
    10211021        return (bool) apply_filters( 'bp_get_user_has_avatar', $retval, $user_id );