WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/02/2019 11:41:16 PM (17 months ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes.

See #47632.

File:
1 edited

Legend:

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

    r43571 r45590  
    236236            curl_exec( $handle );
    237237
    238             if ( $curl_error = curl_error( $handle ) ) {
     238            $curl_error = curl_error( $handle );
     239            if ( $curl_error ) {
    239240                curl_close( $handle );
    240241                return new WP_Error( 'http_request_failed', $curl_error );
     
    282283                }
    283284            } else {
    284                 if ( $curl_error = curl_error( $handle ) ) {
     285                $curl_error = curl_error( $handle );
     286                if ( $curl_error ) {
    285287                    curl_close( $handle );
    286288                    return new WP_Error( 'http_request_failed', $curl_error );
     
    308310
    309311        // Handle redirects.
    310         if ( false !== ( $redirect_response = WP_HTTP::handle_redirects( $url, $r, $response ) ) ) {
     312        $redirect_response = WP_HTTP::handle_redirects( $url, $r, $response );
     313        if ( false !== $redirect_response ) {
    311314            return $redirect_response;
    312315        }
Note: See TracChangeset for help on using the changeset viewer.