Fix backend avatar display
git-svn-id: http://svn.automattic.com/wordpress/trunk@6883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7f1df6fb14
commit
89ee192797
|
@ -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