Ticket #3922: $params.patch
File $params.patch, 1.5 KB (added by , 13 years ago) |
---|
-
bp-core-avatars.php
136 136 break; 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 ) ) { 142 142 return false; 143 143 } 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 148 150 if ( empty( $avatar_dir ) ) { … … 168 170 break; 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 ) ) { 174 176 return false; … … 198 200 break; 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 } 204 206 … … 210 212 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 ) ) . "'";214 No newline at end of file 215 $title = " title='" . esc_attr( apply_filters( 'bp_core_avatar_title', $title, $item_id, $object, $params ) ) . "'"; 216 No newline at end of file 215 217 216 218 // Set CSS ID if passed