Skip to:
Content

BuddyPress.org

Changeset 6937


Ignore:
Timestamp:
04/21/2013 06:01:13 PM (11 years ago)
Author:
boonebgorges
Message:

Pass $params to the 'bp_core_fetch_avatar_url' filters

Fixes #4910

Props eggproject

File:
1 edited

Legend:

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

    r6884 r6937  
    339339            // ...or only the URL
    340340            } else {
    341                 return apply_filters( 'bp_core_fetch_avatar_url', $avatar_url );
     341                return apply_filters( 'bp_core_fetch_avatar_url', $avatar_url, $params );
    342342            }
    343343        }
     
    400400        return apply_filters( 'bp_core_fetch_avatar', '<img src="' . $gravatar . '" class="' . esc_attr( $class ) . '"' . $css_id . $html_width . $html_height . $html_alt . $title . ' />', $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir );
    401401    } else {
    402         return apply_filters( 'bp_core_fetch_avatar_url', $gravatar );
     402        return apply_filters( 'bp_core_fetch_avatar_url', $gravatar, $params );
    403403    }
    404404}
Note: See TracChangeset for help on using the changeset viewer.