akismet_https_request_failure

akismet_https_request_failure

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('akismet_https_request_failure') is found 2 times:

  • /wp-content/plugins/akismet/class.akismet.php line 1488
    1485
    1486
    1487
    1488
    1489
    1490
    1491
    1492
    1493
    self::log( compact( 'akismet_url', 'http_args', 'response' ) );
     
    if ( $ssl && is_wp_error( $response ) ) {
        do_action( 'akismet_https_request_failure', $response );
     
        // Intermittent connection problems may cause the first HTTPS
        // request to fail and subsequent HTTP requests to succeed randomly.
        // Retry the HTTPS request once before disabling SSL for a time.
        $response = wp_remote_post( $akismet_url, $http_args );
  • /wp-content/plugins/akismet/class.akismet.php line 1500
    1497
    1498
    1499
    1500
    1501
    1502
    1503
    1504
    1505
    if ( is_wp_error( $response ) ) {
        $ssl_failed = true;
     
        do_action( 'akismet_https_request_failure', $response );
     
        do_action( 'akismet_http_request_pre' );
     
        // Try the request again without SSL.
        $response = wp_remote_post( $http_akismet_url, $http_args );