Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from comment and trackback spam</strong>. It keeps your site protected from spam even while you sleep. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://akismet.com/get/">Sign up for an Akismet API key</a>, and 3) Go to your Akismet configuration page, and save your API key.
Akismet::update_comment_history($c['comment_ID'],sprintf(__('Akismet was unable to re-check this comment (response: %s)','akismet'),substr($response[1],0,50)),'check-error');
// 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.
$message=$row['message'];
}
// If possible, use a current translation.
switch($row['event']){
case'recheck-spam';
$message=__('Akismet re-checked and caught this comment as spam.','akismet');
break;
case'check-spam':
$message=__('Akismet caught this comment as spam.','akismet');
break;
case'recheck-ham':
$message=__('Akismet re-checked and cleared this comment.','akismet');
break;
case'check-ham':
$message=__('Akismet cleared this comment.','akismet');
break;
case'wp-blacklisted':
$message=__('Comment was caught by wp_blacklist_check.','akismet');
break;
case'report-spam':
if(isset($row['user'])){
$message=sprintf(__('%s reported this comment as spam.','akismet'),$row['user']);
}
elseif(!$message){
$message=__('This comment was reported as spam.','akismet');
}
break;
case'report-ham':
if(isset($row['user'])){
$message=sprintf(__('%s reported this comment as not spam.','akismet'),$row['user']);
}
elseif(!$message){
$message=__('This comment was reported as not spam.','akismet');
}
break;
case'cron-retry-spam':
$message=__('Akismet caught this comment as spam during an automatic retry.','akismet');
break;
case'cron-retry-ham':
$message=__('Akismet cleared this comment during an automatic retry.','akismet');
break;
case'check-error':
if(isset($row['meta'],$row['meta']['response'])){
$message=sprintf(__('Akismet was unable to check this comment (response: %s) but will automatically retry later.','akismet'),$row['meta']['response']);
}
break;
case'recheck-error':
if(isset($row['meta'],$row['meta']['response'])){
$message=sprintf(__('Akismet was unable to recheck this comment (response: %s).','akismet'),$row['meta']['response']);
self::update_comment_history($comment->comment_ID,sprintf(__('Comment status was changed to %s','akismet'),$comment->comment_approved),'status-changed'.$comment->comment_approved);
self::update_comment_history($comment->comment_ID,sprintf(__('Comment status was changed to %s','akismet'),$comment->comment_approved),'status-changed-'.$comment->comment_approved);
self::update_comment_history($comment->comment_ID,sprintf(__('Akismet was unable to check this comment (response: %s), will automatically retry again later.','akismet'),substr(self::$last_comment['akismet_result'],0,50)),'check-error');
self::update_comment_history($comment->comment_ID,sprintf(__('%1$s changed the comment status to %2$s','akismet'),$reporter,$new_status),'status-'.$new_status);
Tags: akismet, comments, spam, antispam, anti-spam, anti spam, comment moderation, comment spam, contact form spam, spam comments
Requires at least: 3.2
Tested up to: 4.2.1
Stable tag: 3.1.1
Tested up to: 4.2.2
Stable tag: 3.1.3
License: GPLv2 or later
Akismet checks your comments against the Akismet Web service to see if they look like spam or not.
...
...
@@ -30,6 +30,21 @@ Upload the Akismet plugin to your blog, Activate it, then enter your [Akismet.co
== Changelog ==
= 3.1.3 =
*Release Date - 6 July 2015*
* Notify users when their account status changes after previously being successfully set up. This should help any users who are seeing blank Akismet settings screens.
= 3.1.2 =
*Release Date - 7 June 2015*
* Reduced the amount of space Akismet uses in the commentmeta table.
* Fixed a bug where some comments with quotes in the author name weren't getting history entries
* Pre-emptive security improvements to ensure that the Akismet plugin can't be used by attackers to compromise a WordPress installation.
* Better UI for the key entry field: allow whitespace to be included at the beginning or end of the key and strip it out automatically when the form is submitted.
* When deactivating the plugin, notify the Akismet API so the site can be marked as inactive.
<h3class="key-status failed"><?phpesc_html_e('Your subscription is missing.','akismet');?></h3>
<pclass="description"><?phpprintf(__('Since 2012, Akismet began using subscriptions for all accounts (even free ones). It looks like a subscription has not been assigned to your account, and we’d appreciate it if you’d <a href="%s" target="_blank">sign into your account</a> and choose one. Please <a href="%s" target="_blank">contact our support team</a> with any questions.','akismet'),'https://akismet.com/account/upgrade/','https://akismet.com/contact/');?></p>
<pclass="description">
<?phpprintf(__('Since 2012, Akismet began using subscriptions for all accounts (even free ones). It looks like a subscription has not been assigned to your account, and we’d appreciate it if you’d <a href="%s" target="_blank">sign into your account</a> and choose one.','akismet'),'https://akismet.com/account/upgrade/');?>
<br/><br/>
<?phpprintf(__('Please <a href="%s" target="_blank">contact our support team</a> with any questions.','akismet'),'https://akismet.com/contact/');?>
</p>
</div>
<?phpelseif($type=='new-key-valid'):?>
<divclass="wrap alert active">
...
...
@@ -85,18 +89,31 @@
<divclass="wrap alert critical">
<h3class="key-status"><?phpesc_html_e('The key you entered is invalid. Please double-check it.','akismet');?></h3>
</div>
<?phpelseif($type=='existing-key-invalid'):?>
<divclass="wrap alert critical">
<h3class="key-status"><?phpesc_html_e('Your API key is no longer valid. Please enter a new key or contact support@akismet.com.','akismet');?></h3>
</div>
<?phpelseif($type=='new-key-failed'):?>
<divclass="wrap alert critical">
<h3class="key-status"><?phpesc_html_e('The key you entered could not be verified because a connection to akismet.com could not be established. Please check your server configuration.','akismet');?></h3>
<h3class="key-status"><?phpesc_html_e('The key you entered could not be verified.','akismet');?></h3>
<pclass="description"><?phpprintf(__('The connection to akismet.com cannot be established. Please refer to <a href="%s" target="_blank">our guide about firewalls</a> and check your server configuration.','akismet'),'http://blog.akismet.com/akismet-hosting-faq/');?></p>
<h3class="key-status failed"><?phpesc_html_e("You're using your Akismet key on more sites than your Pro subscription allows.",'akismet');?></h3>
<pclass="description"><?phpprintf(__('Your Pro subscription allows the use of Akismet on only one site. Please <a href="http://docs.akismet.com/billing/add-more-sites/">purchase additional Pro subscriptions</a> or upgrade to an Enterprise subscription that allows the use of Akismet on unlimited sites.<br /><br />If you have any questions, please get in touch with our support team.','akismet'),'https://akismet.com/account/upgrade/','https://akismet.com/contact/');?></p>
<h3class="key-status failed"><?phpesc_html_e('You’re using your Akismet key on more sites than your Pro subscription allows.','akismet');?></h3>
<pclass="description">
<?phpprintf(__('Your Pro subscription allows the use of Akismet on only one site. Please <a href="%s" target="_blank">purchase additional Pro subscriptions</a> or upgrade to an Enterprise subscription that allows the use of Akismet on unlimited sites.','akismet'),'http://docs.akismet.com/billing/add-more-sites/');?>
<br/><br/>
<?phpprintf(__('Please <a href="%s" target="_blank">contact our support team</a> with any questions.','akismet'),'https://akismet.com/contact/');?>
</p>
<?phpelseif($level=='red'):?>
<h3class="key-status failed"><?phpesc_html_e("You're using Akismet on far too many sites for your Pro subscription.",'akismet');?></h3>
<pclass="description"><?phpprintf(__('To continue your service, <a href="%s" target="_blank">upgrade to an Enterprise subscription</a>, which covers an unlimited number of sites. Please <a href="%s" target="_blank">contact our support team</a> with any questions.','akismet'),'https://akismet.com/account/upgrade/','https://akismet.com/contact/');?></p>
<h3class="key-status failed"><?phpesc_html_e('You’re using Akismet on far too many sites for your Pro subscription.','akismet');?></h3>
<pclass="description">
<?phpprintf(__('To continue your service, <a href="%s" target="_blank">upgrade to an Enterprise subscription</a>, which covers an unlimited number of sites.','akismet'),'https://akismet.com/account/upgrade/');?></p>
<br/><br/>
<?phpprintf(__('Please <a href="%s" target="_blank">contact our support team</a> with any questions.','akismet'),'https://akismet.com/contact/');?></p>