WordPress.org

Plugin Directory

Changeset 118704


Ignore:
Timestamp:
05/18/09 14:37:39 (5 years ago)
Author:
bforchhammer
Message:

Changed get_avatar() call to use user id instead of email (email does not work with buddypress)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • author-avatars/trunk/lib/UserList.class.php

    r114761 r118704  
    182182        $name = $user->display_name; 
    183183 
    184         $avatar = get_avatar($user->user_email, $avatar_size); 
     184        $avatar = get_avatar($user->user_id, $avatar_size); 
    185185        $avatar = preg_replace('@alt=["\'][\w]*["\'] ?@', '', $avatar); 
    186186        $avatar = preg_replace('@ ?\/>@', ' alt="'.$name.'" title="'.$name.'" />', $avatar); 
Note: See TracChangeset for help on using the changeset viewer.