$api_key = self::
get_api_key();
$status = self::
verify_key( $api_key );
if ( get_option( 'akismet_alert_code'
) ||
$status == 'invalid'
) { // since there is currently a problem with the key, reschedule a check for 6 hours hence
wp_schedule_single_event( time() + 21600, 'akismet_schedule_cron_recheck'
);
do_action( 'akismet_scheduled_recheck', 'key-problem-' .
get_option( 'akismet_alert_code'
) . '-' .
$status );
return false;
} delete_option('akismet_available_servers'
);
$comment_errors =
$wpdb->
get_col( "SELECT comment_id FROM {
$wpdb->commentmeta
} WHERE meta_key = 'akismet_error' LIMIT 100"
);
load_plugin_textdomain( 'akismet'
);
foreach ( (array) $comment_errors as $comment_id ) { // if the comment no longer exists, or is too old, remove the meta entry from the queue to avoid getting stuck
$comment =
get_comment( $comment_id );
if ( !
$comment // Comment has been deleted