Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track Akismet spam checks, reflect on comment addition log #472 #587

merged 3 commits into from Jul 8, 2014
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now


  • Loading branch information...
shadyvb committed Jun 30, 2014
commit 76b8c50c83ccf1cca07eb4e3e6478d01be8f2dba
@@ -229,7 +229,7 @@ public static function callback_wp_insert_comment( $comment_id, $comment ) {
// Auto-marked spam comments
if ( class_exists( 'Akismet' ) && Akismet::matches_last_comment( $comment ) ) {
$ak_last_comment = Akismet::get_last_comment();
if ( $ak_last_comment['akismet_result'] == 'true' ) {
if ( 'true' == $ak_last_comment['akismet_result'] ) {
$is_spam = true;
$comment_status = __( 'marked as spam', 'stream' );

This comment has been minimized.

Copy link

fjarrett Jun 30, 2014


@shadyvb I think we should also add some Steam meta here as well as indicate in the summary that Akismet had involvement with the action.


ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.