Skip to:
Content

BuddyPress.org

Changeset 5652


Ignore:
Timestamp:
01/27/2012 08:29:36 PM (13 years ago)
Author:
boonebgorges
Message:

Pass params to filters in bp_core_fetch_avatar.
Fixes #3922.
Props fanquake, blindmoe

File:
1 edited

Legend:

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

    r5574 r5652  
    137137        }
    138138
    139         $item_id = apply_filters( 'bp_core_avatar_item_id', $item_id, $object );
     139        $item_id = apply_filters( 'bp_core_avatar_item_id', $item_id, $object, $params );
    140140
    141141        if ( empty( $item_id ) ) {
     
    144144    }
    145145
     146    $class = apply_filters( 'bp_core_avatar_class', $class, $item_id, $object, $params );
     147   
    146148    /** Set avatar_dir ********************************************************/
    147149
     
    169171        }
    170172
    171         $avatar_dir = apply_filters( 'bp_core_avatar_dir', $avatar_dir, $object );
     173        $avatar_dir = apply_filters( 'bp_core_avatar_dir', $avatar_dir, $object, $params );
    172174
    173175        if ( empty( $avatar_dir ) ) {
     
    199201        }
    200202
    201         $item_name = apply_filters( 'bp_core_avatar_alt', $item_name, $item_id, $object );
     203        $item_name = apply_filters( 'bp_core_avatar_alt', $item_name, $item_id, $object, $params );
    202204        $alt       = sprintf( $alt, $item_name );
    203205    }
     
    211213    // Set title tag, if it's been provided
    212214    if ( !empty( $title ) )
    213         $title = " title='" . esc_attr( apply_filters( 'bp_core_avatar_title', $title, $item_id, $object ) ) . "'";
     215        $title = " title='" . esc_attr( apply_filters( 'bp_core_avatar_title', $title, $item_id, $object, $params ) ) . "'";
    214216
    215217    // Set CSS ID if passed
Note: See TracChangeset for help on using the changeset viewer.