Solar_Service_Akismet::_prepareData()

protected void Solar_Service_Akismet::_prepareData ( array $$data )

Prepares the comment, spam, or ham comment data by reference for submission to Akismet.

Parameters

  • (array) &$data: The data to prepare by reference.

Returns

  • (void)

Description

Prepares the comment, spam, or ham comment data by reference for submission to Akismet.

The $data keys are:

blog

The front page or home URL of the instance making the request. For a blog or wiki this would be the front page. Must be a full URI, including 'http://'. Default is the config value for blog.

user_ip

IP address of the comment submitter. Default is the server REMOTE_ADDR value.

user_agent

User agent information. Default is the server HTTP_USER_AGENT value.

referrer (note spelling)

Default is the HTTP_REFERER value.

permalink

The permanent location of the entry the comment was submitted to.

comment_type

May be blank, 'comment', 'trackback', 'pingback', or any other value (e.g., 'registration'). Default blank.

comment_author

Submitted name with the comment. Default blank. Leaving blank is highly likely to result in a "spam" result.

comment_author_email

Submitted email address

comment_author_url

Commenter URL.

comment_content

The content that was submitted.



Local