if ( $show_user_comments ) { $comment_count = Akismet::
get_user_comments_approved( $comment->user_id,
$comment->comment_author_email,
$comment->comment_author,
$comment->comment_author_url
);
$comment_count =
intval( $comment_count );
echo '<span class="akismet-user-comment-count" commentid="'.
$comment->comment_ID.'" style="display:none;"><br><span class="akismet-user-comment-counts">'.
sprintf( esc_html( _n( '%s approved', '%s approved',
$comment_count , 'akismet'
) ),
number_format_i18n( $comment_count ) ) . '</span></span>';
} return $a;
} public static function comment_status_meta_box( $comment ) { $history = Akismet::
get_comment_history( $comment->comment_ID
);
if ( $history ) { foreach ( $history as $row ) { $message = '';
if ( !
empty( $row['message'
] ) ) { // Old versions of Akismet stored the message as a literal string in the commentmeta.
// New versions don't do that for two reasons:
// 1) Save space.
// 2) The message can be translated into the current language of the blog, not stuck
// in the language of the blog when the comment was made.