Fix backend avatar display

git-svn-id: https://develop.svn.wordpress.org/trunk@6883 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-17 01:57:58 +00:00
parent 3ad05e2d3b
commit 19f94ceb41

View File

@ -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' );
}