From ef9b9664e12198354b7d86811c1fd0a484bda807 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 18 Sep 2013 01:51:10 +0000 Subject: [PATCH] WP_HTTP: Fix a typo in the naming of WP_HTTP_Streams::verify_ssl_certificate(). Props SergeyBiryukov See #25007 Built from https://develop.svn.wordpress.org/trunk@25473 git-svn-id: http://core.svn.wordpress.org/trunk@25394 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-http.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 44b6b01310..1ebc62bb38 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -752,7 +752,7 @@ class WP_Http_Streams { $context = stream_context_create( array( 'ssl' => array( 'verify_peer' => $ssl_verify, - //'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_certficate() + //'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_certificate() 'capture_peer_cert' => $ssl_verify, 'SNI_enabled' => true, 'cafile' => $r['sslcertificates'], @@ -797,7 +797,7 @@ class WP_Http_Streams { // Verify that the SSL certificate is valid for this request if ( $secure_transport && $ssl_verify && ! $proxy->is_enabled() ) { - if ( ! self::verify_ssl_certficate( $handle, $arrURL['host'] ) ) + if ( ! self::verify_ssl_certificate( $handle, $arrURL['host'] ) ) return new WP_Error( 'http_request_failed', __( 'The SSL Certificate for the host could not be verified.' ) ); } @@ -959,7 +959,7 @@ class WP_Http_Streams { * @param string $host The hostname being requested * @return bool If the cerficiate presented in $stream is valid for $host */ - static function verify_ssl_certficate( $stream, $host ) { + static function verify_ssl_certificate( $stream, $host ) { $context_options = stream_context_get_options( $stream ); if ( empty( $context_options['ssl']['peer_certificate'] ) )