Make WordPress Core

Changeset 52966


Ignore:
Timestamp:
03/20/2022 04:22:57 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-includes/class-wp-http-curl.php.

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

See #54728.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http-curl.php

    r52965 r52966  
    269269
    270270        // If an error occurred, or, no response.
    271         if ( $curl_error || ( 0 == strlen( $body ) && empty( $processed_headers['headers'] ) ) ) {
    272             if ( CURLE_WRITE_ERROR /* 23 */ == $curl_error ) {
    273                 if ( ! $this->max_body_length || $this->max_body_length != $bytes_written_total ) {
     271        if ( $curl_error || ( 0 === strlen( $body ) && empty( $processed_headers['headers'] ) ) ) {
     272            if ( CURLE_WRITE_ERROR /* 23 */ === $curl_error ) {
     273                if ( ! $this->max_body_length || $this->max_body_length !== $bytes_written_total ) {
    274274                    if ( $parsed_args['stream'] ) {
    275275                        curl_close( $handle );
Note: See TracChangeset for help on using the changeset viewer.