Make WordPress Core

Ticket #46784: 46784.diff

File 46784.diff, 761 bytes (added by mukesh27, 5 years ago)

Fixed other possible WPCS violation

  • wp-includes/class-wp-http-proxy.php

    diff --git a/wp-includes/class-wp-http-proxy.php b/wp-includes/class-wp-http-proxy.php
    index 24a354e2c9..a03d557f5f 100644
    a b class WP_HTTP_Proxy { 
    174174                $check = @parse_url( $uri );
    175175
    176176                // Malformed URL, can not process, but this could mean ssl, so let through anyway.
    177                 if ( $check === false ) {
     177                if ( false === $check ) {
    178178                        return true;
    179179                }
    180180
    class WP_HTTP_Proxy { 
    198198                        return $result;
    199199                }
    200200
    201                 if ( 'localhost' == $check['host'] || ( isset( $home['host'] ) && $home['host'] == $check['host'] ) ) {
     201                if ( 'localhost' === $check['host'] || ( isset( $home['host'] ) && $home['host'] === $check['host'] ) ) {
    202202                        return false;
    203203                }
    204204