$future_check =
wp_next_scheduled( 'akismet_schedule_cron_recheck'
);
if ( !
$future_check ) { return;
} if ( get_option( 'akismet_alert_code'
) > 0
) { return;
} $check_range =
time() + 1200;
if ( $future_check >
$check_range ) { wp_clear_scheduled_hook( 'akismet_schedule_cron_recheck'
);
wp_schedule_single_event( time() + 300, 'akismet_schedule_cron_recheck'
);
do_action( 'akismet_scheduled_recheck', 'fix-scheduled-recheck'
);
} } public static function add_comment_nonce( $post_id ) { /**
* To disable the Akismet comment nonce, add a filter for the 'akismet_comment_nonce' tag
* and return any string value that is not 'true' or '' (empty string).
*
* Don't return boolean false, because that implies that the 'akismet_comment_nonce' option
* has not been set and that Akismet should just choose the default behavior for that
* situation.
*/