Changeset 47219 for trunk/src/wp-includes/class-wp-http-curl.php
- Timestamp:
- 02/09/2020 04:52:28 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-http-curl.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-curl.php
r47096 r47219 130 130 curl_setopt( $handle, CURLOPT_URL, $url ); 131 131 curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true ); 132 curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( $ssl_verify === true) ? 2 : false );132 curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( true === $ssl_verify ) ? 2 : false ); 133 133 curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, $ssl_verify ); 134 134 … … 210 210 } 211 211 212 if ( $parsed_args['httpversion'] == '1.0') {212 if ( '1.0' === $parsed_args['httpversion'] ) { 213 213 curl_setopt( $handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0 ); 214 214 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)