In the admin, do not use auto-generated Gravatar images for comment authors.

This makes it easier to recognize Gravatars (or lack thereof) when moderating comments.

props solarissmoke.
fixes #7054.


Built from https://develop.svn.wordpress.org/trunk@25091


git-svn-id: http://core.svn.wordpress.org/trunk@25075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-08-22 20:08:08 +00:00
parent 945b12bfcf
commit 9b0e21493d
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ function get_pending_comments_num( $post_id ) {
*/ */
function floated_admin_avatar( $name ) { function floated_admin_avatar( $name ) {
global $comment; global $comment;
$avatar = get_avatar( $comment, 32 ); $avatar = get_avatar( $comment, 32, 'mystery' );
return "$avatar $name"; return "$avatar $name";
} }

View File

@ -710,7 +710,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
<div id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status($comment->comment_ID) ) ); ?>> <div id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status($comment->comment_ID) ) ); ?>>
<?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?> <?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?>
<?php echo get_avatar( $comment, 50 ); ?> <?php echo get_avatar( $comment, 50, 'mystery' ); ?>
<div class="dashboard-comment-wrap"> <div class="dashboard-comment-wrap">
<h4 class="comment-meta"> <h4 class="comment-meta">