Skip to content

Commit 0c24a91

Browse files
committed
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 WordPress#7054. git-svn-id: https://develop.svn.wordpress.org/trunk@25091 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 463fde4 commit 0c24a91

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-admin/includes/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function get_pending_comments_num( $post_id ) {
148148
*/
149149
function floated_admin_avatar( $name ) {
150150
global $comment;
151-
$avatar = get_avatar( $comment, 32 );
151+
$avatar = get_avatar( $comment, 32, 'mystery' );
152152
return "$avatar $name";
153153
}
154154

src/wp-admin/includes/dashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
710710
<div id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status($comment->comment_ID) ) ); ?>>
711711
<?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?>
712712

713-
<?php echo get_avatar( $comment, 50 ); ?>
713+
<?php echo get_avatar( $comment, 50, 'mystery' ); ?>
714714

715715
<div class="dashboard-comment-wrap">
716716
<h4 class="comment-meta">

0 commit comments

Comments
 (0)