Ticket #2288: avatar_fix.diff
File avatar_fix.diff, 613 bytes (added by , 15 years ago) |
---|
-
bp-core/bp-core-avatars.php
344 344 // Override internal "get_avatar()" function to use our own where possible 345 345 function bp_core_fetch_avatar_filter( $avatar, $user, $size, $default, $alt ) { 346 346 global $authordata; 347 347 348 348 if ( is_object( $user ) ) 349 349 $id = $user->user_id; 350 350 else if ( is_numeric( $user ) ) 351 351 $id = $user; 352 else if ( $_user = get_user_by_email( $user ) ) 353 $id = $_user->ID; 352 354 else 353 355 $id = $authordata->ID; 354 356