Add the floated_admin_avatar filter from WP_Comments_Table. See #14637

git-svn-id: https://develop.svn.wordpress.org/trunk@15512 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-08-20 11:18:41 +00:00
parent c016d150ef
commit 316ce57342
3 changed files with 8 additions and 18 deletions
-6
View File
@@ -158,10 +158,4 @@ function enqueue_comment_hotkeys_js() {
if ( 'true' == get_user_option( 'comment_shortcuts' ) )
wp_enqueue_script( 'jquery-table-hotkeys' );
}
if ( is_admin() && isset($pagenow) && ('edit-comments.php' == $pagenow || 'edit.php' == $pagenow) ) {
if ( get_option('show_avatars') )
add_filter( 'comment_author', 'floated_admin_avatar' );
}
?>