diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 683552d5f0..2ae0245b1e 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -1190,7 +1190,7 @@ class WP_Http_Curl { curl_setopt( $handle, CURLOPT_URL, $url); curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true ); - curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, $ssl_verify ); + curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( $ssl_verify === true ) ? 2 : false ); curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, $ssl_verify ); curl_setopt( $handle, CURLOPT_USERAGENT, $r['user-agent'] ); curl_setopt( $handle, CURLOPT_MAXREDIRS, $r['redirection'] );