Skip to:
Content

BuddyPress.org

Ticket #5958: 5958.patch

File 5958.patch, 560 bytes (added by dcavins, 12 years ago)
  • src/bp-core/bp-core-avatars.php

    diff --git src/bp-core/bp-core-avatars.php src/bp-core/bp-core-avatars.php
    index 7992132..320e6e5 100644
    function bp_core_fetch_avatar( $args = '' ) {  
    418418        // If no avatars could be found, try to display a gravatar
    419419
    420420        // Skips gravatar check if $no_grav is passed
    421         if ( ! apply_filters( 'bp_core_fetch_avatar_no_grav', $no_grav ) ) {
     421        if ( ! apply_filters( 'bp_core_fetch_avatar_no_grav', $no_grav, $object ) ) {
    422422
    423423                // Set gravatar size
    424424                if ( false !== $width ) {