Switch to using the ID when calling get_avatar internally to support caching plugins. Fixes #8940.

git-svn-id: https://develop.svn.wordpress.org/trunk@10445 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-01-26 22:03:40 +00:00
parent fd2d60391f
commit fa54320e2e
1 changed files with 1 additions and 1 deletions

View File

@ -1852,7 +1852,7 @@ function user_row( $user_object, $style = '', $role = '' ) {
$r = "<tr id='user-$user_object->ID'$style>"; $r = "<tr id='user-$user_object->ID'$style>";
$columns = get_column_headers('users'); $columns = get_column_headers('users');
$hidden = get_hidden_columns('users'); $hidden = get_hidden_columns('users');
$avatar = get_avatar( $user_object->user_email, 32 ); $avatar = get_avatar( $user_object->ID, 32 );
foreach ( $columns as $column_name => $column_display_name ) { foreach ( $columns as $column_name => $column_display_name ) {
$class = "class=\"$column_name column-$column_name\""; $class = "class=\"$column_name column-$column_name\"";