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

git-svn-id: http://svn.automattic.com/wordpress/trunk@10445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-01-26 22:03:40 +00:00
parent df5d6a5cba
commit 00e9626be4

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\"";