[wp-hackers] Why is Akismet returning more info in the $commentdata ?

Peter van der Does peter at avirtualhome.com
Sat Dec 19 04:31:56 UTC 2009


Akismet is adding several fields to commentdata during the
preprocess_comment filter. The function called is
akismet_auto_check_comment.

The following fields are added:

$comment['user_ip']    = preg_replace( '/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR'] );
$comment['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
$comment['referrer']   = $_SERVER['HTTP_REFERER'];
$comment['blog']       = get_option('home');
$comment['blog_lang']  = get_locale();
$comment['blog_charset'] = get_option('blog_charset');
$comment['permalink']  = get_permalink($comment['comment_post_ID']);


Why is this?

-- 
Peter van der Does

GPG key: E77E8E98

IRC: Ganseki on irc.freenode.net
Twitter: @petervanderdoes

WordPress Plugin Developer
Blog: http://blog.avirtualhome.com
Forums: http://forums.avirtualhome.com
Twitter: @avhsoftware


More information about the wp-hackers mailing list