if ( $ssl_failed ) { // The request failed when using SSL but succeeded without it. Disable SSL for future requests.
update_option( 'akismet_ssl_disabled',
time() );
do_action( 'akismet_https_disabled'
);
} $simplified_response = array
( $response['headers'
],
$response['body'
] );
self::
update_alert( $simplified_response );
return $simplified_response;
} // given a response from an API call like check_key_status(), update the alert code options if an alert is present.
public static function update_alert( $response ) { $alert_option_prefix = 'akismet_alert_';
$alert_header_prefix = 'x-akismet-alert-';
$alert_header_names = array
( 'code',
'msg',