Skip to content

Commit

Permalink
Coding Standards: Use strict comparison in `wp-includes/class-wp-http…
Browse files Browse the repository at this point in the history
…-curl.php`.

Follow-up to [17692], [25303], [29968].

See #54728.

git-svn-id: https://develop.svn.wordpress.org/trunk@52966 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Mar 20, 2022
1 parent a993557 commit c5e8912
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wp-includes/class-wp-http-curl.php
Expand Up @@ -268,9 +268,9 @@ public function request( $url, $args = array() ) {
$curl_error = curl_errno( $handle );

// If an error occurred, or, no response.
if ( $curl_error || ( 0 == strlen( $body ) && empty( $processed_headers['headers'] ) ) ) {
if ( CURLE_WRITE_ERROR /* 23 */ == $curl_error ) {
if ( ! $this->max_body_length || $this->max_body_length != $bytes_written_total ) {
if ( $curl_error || ( 0 === strlen( $body ) && empty( $processed_headers['headers'] ) ) ) {
if ( CURLE_WRITE_ERROR /* 23 */ === $curl_error ) {
if ( ! $this->max_body_length || $this->max_body_length !== $bytes_written_total ) {
if ( $parsed_args['stream'] ) {
curl_close( $handle );
fclose( $this->stream_handle );
Expand Down

0 comments on commit c5e8912

Please sign in to comment.