WordPress.org

Make WordPress Core

Changeset 25473


Ignore:
Timestamp:
09/18/2013 01:50:53 AM (6 years ago)
Author:
dd32
Message:

WP_HTTP: Fix a typo in the naming of WP_HTTP_Streams::verify_ssl_certificate(). Props SergeyBiryukov See #25007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-http.php

    r25348 r25473  
    753753            'ssl' => array(
    754754                'verify_peer' => $ssl_verify,
    755                 //'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_certficate()
     755                //'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_certificate()
    756756                'capture_peer_cert' => $ssl_verify,
    757757                'SNI_enabled' => true,
     
    798798        // Verify that the SSL certificate is valid for this request
    799799        if ( $secure_transport && $ssl_verify && ! $proxy->is_enabled() ) {
    800             if ( ! self::verify_ssl_certficate( $handle, $arrURL['host'] ) )
     800            if ( ! self::verify_ssl_certificate( $handle, $arrURL['host'] ) )
    801801                return new WP_Error( 'http_request_failed', __( 'The SSL Certificate for the host could not be verified.' ) );
    802802        }
     
    960960     * @return bool If the cerficiate presented in $stream is valid for $host
    961961     */
    962     static function verify_ssl_certficate( $stream, $host ) {
     962    static function verify_ssl_certificate( $stream, $host ) {
    963963        $context_options = stream_context_get_options( $stream );
    964964
Note: See TracChangeset for help on using the changeset viewer.