Akismet::
verify_key( Akismet::
get_api_key() ); //verify that the key is still in alert state
$alert_code =
get_option( 'akismet_alert_code'
);
if ( isset( Akismet::
$limit_notices[ $alert_code ] ) ) { self::
display_usage_limit_alert();
} elseif ( $alert_code > 0
) { self::
display_alert();
} } elseif ( ( 'plugins.php' ===
$hook_suffix || 'edit-comments.php' ===
$hook_suffix ) && ! Akismet::
get_api_key() ) { // Show the "Set Up Akismet" banner on the comments and plugin pages if no API key has been set.
self::
display_api_key_warning();
} elseif ( $hook_suffix == 'edit-comments.php' &&
wp_next_scheduled( 'akismet_schedule_cron_recheck'
) ) { self::
display_spam_check_warning();
} if ( isset( $_GET['akismet_recheck_complete'
] ) ) { $recheck_count =
(int) $_GET['recheck_count'
];
$spam_count =
(int) $_GET['spam_count'
];
if ( $recheck_count === 0
) { $message =
__( 'There were no comments to check. Akismet will only check comments awaiting moderation.', 'akismet'
);
}