Make WordPress Core

Ticket #25007: 25007.typo-fix.diff

File 25007.typo-fix.diff, 1.4 KB (added by SergeyBiryukov, 11 years ago)
  • src/wp-includes/class-http.php

     
    752752                $context = stream_context_create( array(
    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,
    758758                                'cafile' => $r['sslcertificates'],
     
    797797
    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                }
    803803
     
    959959         * @param string $host The hostname being requested
    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
    965965                if ( empty( $context_options['ssl']['peer_certificate'] ) )