Revert [8881], patch wasn't ready. see #7738
git-svn-id: http://svn.automattic.com/wordpress/trunk@8882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
32c9a1f7c4
commit
727c0fc3d5
|
@ -106,15 +106,6 @@ function get_pending_comments_num( $post_id ) {
|
|||
|
||||
// Add avatars to relevant places in admin, or try to
|
||||
|
||||
add_action('admin_init', 'floated_admin_avatar_handler');
|
||||
function floated_admin_avatar_handler() {
|
||||
global $pagenow;
|
||||
if ( 'edit-comments.php' == $pagenow || 'edit.php' == $pagenow ) {
|
||||
if ( get_option('show_avatars') )
|
||||
add_filter( 'comment_author', 'floated_admin_avatar' );
|
||||
}
|
||||
}
|
||||
|
||||
function floated_admin_avatar( $name ) {
|
||||
global $comment;
|
||||
|
||||
|
@ -130,6 +121,11 @@ function floated_admin_avatar( $name ) {
|
|||
return "$avatar $name";
|
||||
}
|
||||
|
||||
if ( is_admin() && ('edit-comments.php' == $pagenow || 'edit.php' == $pagenow) ) {
|
||||
if ( get_option('show_avatars') )
|
||||
add_filter( 'comment_author', 'floated_admin_avatar' );
|
||||
}
|
||||
|
||||
function wp_get_inbox_items() {
|
||||
$r = array();
|
||||
$r[] = (object) array(
|
||||
|
|
Loading…
Reference in New Issue