Changeset 5652
- Timestamp:
- 01/27/2012 08:29:36 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r5574 r5652 137 137 } 138 138 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 ); 140 140 141 141 if ( empty( $item_id ) ) { … … 144 144 } 145 145 146 $class = apply_filters( 'bp_core_avatar_class', $class, $item_id, $object, $params ); 147 146 148 /** Set avatar_dir ********************************************************/ 147 149 … … 169 171 } 170 172 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 ); 172 174 173 175 if ( empty( $avatar_dir ) ) { … … 199 201 } 200 202 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 ); 202 204 $alt = sprintf( $alt, $item_name ); 203 205 } … … 211 213 // Set title tag, if it's been provided 212 214 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 ) ) . "'"; 214 216 215 217 // Set CSS ID if passed
Note: See TracChangeset
for help on using the changeset viewer.