mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 01:57:53 +01:00
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:
parent
df5d6a5cba
commit
00e9626be4
@ -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\"";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user