pending) )
return 0;
if ( $single )
return $pending[0][1];
$pending_keyed = array();
foreach ( $pending as $pend )
$pending_keyed[$pend[0]] = $pend[1];
return $pending_keyed;
}
/**
* Add avatars to relevant places in admin, or try to.
*
* @since unknown
* @uses $comment
*
* @param string $name User name.
* @return string Avatar with Admin name.
*/
function floated_admin_avatar( $name ) {
global $comment;
$id = $avatar = false;
if ( $comment->comment_author_email )
$id = $comment->comment_author_email;
if ( $comment->user_id )
$id = $comment->user_id;
if ( $id )
$avatar = get_avatar( $id, 32 );
return "$avatar $name";
}
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' );
}
?>
Warning: Cannot modify header information - headers already sent by (output started at /home/compare/public_html/wp-admin/includes/comment.php:138) in /home/compare/public_html/wp-includes/class-IXR.php on line 304
XML-RPC server accepts POST requests only.