10516 => 'FOUR_PLUS_MONTHS_OVER_LIMIT',
);
private static $last_comment = '';
private static $initiated = false;
private static $prevent_moderation_email_for_these_comments = array
();
private static $last_comment_result = null;
private static $comment_as_submitted_allowed_keys = array
( 'blog' => '', 'blog_charset' => '', 'blog_lang' => '', 'blog_ua' => '', 'comment_agent' => '', 'comment_author' => '', 'comment_author_IP' => '', 'comment_author_email' => '', 'comment_author_url' => '', 'comment_content' => '', 'comment_date_gmt' => '', 'comment_tags' => '', 'comment_type' => '', 'guid' => '', 'is_test' => '', 'permalink' => '', 'reporter' => '', 'site_domain' => '', 'submit_referer' => '', 'submit_uri' => '', 'user_ID' => '', 'user_agent' => '', 'user_id' => '', 'user_ip' => ''
);
public static function init() { if ( ! self::
$initiated ) { self::
init_hooks();
} } /**
* Initializes WordPress hooks
*/
private static function init_hooks() { self::
$initiated = true;
add_action( 'wp_insert_comment', array
( 'Akismet', 'auto_check_update_meta'
), 10, 2
);
add_filter( 'preprocess_comment', array
( 'Akismet', 'auto_check_comment'
), 1
);