WordPress.org

Make WordPress Core

Changeset 6946


Ignore:
Timestamp:
02/20/2008 08:58:58 PM (14 years ago)
Author:
ryan
Message:

Allow comment object to be passed to get_avatar() for convenience. see #5775

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r6945 r6946  
    11961196        if ( !empty($id_or_email->user_id) ) {
    11971197            $id = (int) $id_or_email->user_id;
    1198             $user = get_userdata();
     1198            $user = get_userdata($id);
    11991199            if ( $user)
    12001200                $email = $user->user_email;
Note: See TracChangeset for help on using the changeset viewer.