Fix backend avatar display
git-svn-id: https://develop.svn.wordpress.org/trunk@6883 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3ad05e2d3b
commit
19f94ceb41
@ -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' );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user