wp_is_local_html_output example

'ssl_verification_failed',
                __( 'SSL verification failed.' )
            );
        }

        $response = $unverified_response;
    }

    if ( ! is_wp_error( $response ) ) {
        if ( 200 !== wp_remote_retrieve_response_code( $response ) ) {
            $support_errors->add( 'bad_response_code', wp_remote_retrieve_response_message( $response ) );
        } elseif ( false === wp_is_local_html_output( wp_remote_retrieve_body( $response ) ) ) {
            $support_errors->add( 'bad_response_source', __( 'It looks like the response did not come from this site.' ) );
        }
    }

    update_option( 'https_detection_errors', $support_errors->errors );
}

/** * Schedules the Cron hook for detecting HTTPS support. * * @since 5.7.0 * @access private */
Home | Imprint | This part of the site doesn't use cookies.