From 19f94ceb41ca66b89a16d5e85d6d3c1f6033ffdd Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 17 Feb 2008 01:57:58 +0000 Subject: [PATCH] Fix backend avatar display git-svn-id: https://develop.svn.wordpress.org/trunk@6883 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/comment.php b/wp-admin/includes/comment.php index f8a05afea0..a9ff0a06f0 100644 --- a/wp-admin/includes/comment.php +++ b/wp-admin/includes/comment.php @@ -80,7 +80,7 @@ function floated_admin_avatar( $name ) { return "$avatar $name"; } -if ( '/wp-admin/edit-comments.php' == $_SERVER['PHP_SELF'] || '/wp-admin/moderation.php' == $_SERVER['PHP_SELF'] || '/wp-admin/edit.php' == $_SERVER['PHP_SELF'] ) { +if ( is_admin() && ('edit-comments.php' == $pagenow || 'moderation.php' == $pagenow || 'edit.php' == $pagenow) ) { if ( get_option('show_avatars') ) add_filter( 'comment_author', 'floated_admin_avatar' ); }