diff --git a/wp-includes/class-wp-http-curl.php b/wp-includes/class-wp-http-curl.php index b7382da320..d59ddecfad 100644 --- a/wp-includes/class-wp-http-curl.php +++ b/wp-includes/class-wp-http-curl.php @@ -133,7 +133,11 @@ class WP_Http_Curl { curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( $ssl_verify === true ) ? 2 : false ); curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, $ssl_verify ); - curl_setopt( $handle, CURLOPT_CAINFO, $r['sslcertificates'] ); + + if ( $ssl_verify ) { + curl_setopt( $handle, CURLOPT_CAINFO, $r['sslcertificates'] ); + } + curl_setopt( $handle, CURLOPT_USERAGENT, $r['user-agent'] ); /* diff --git a/wp-includes/version.php b/wp-includes/version.php index 478e94f9a9..3a80c70b67 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34638'; +$wp_version = '4.4-alpha-34639'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.