Make WordPress Core

Changeset 51877


Ignore:
Timestamp:
09/30/2021 02:03:17 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [10625], [10864], [13274], [29661], [33748], [47508], [47808].

See #53359.

File:
1 edited

Legend:

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

    r51826 r51877  
    882882
    883883        // Don't block requests back to ourselves by default.
    884         if ( 'localhost' === $check['host'] || ( isset( $home['host'] ) && $home['host'] == $check['host'] ) ) {
     884        if ( 'localhost' === $check['host'] || ( isset( $home['host'] ) && $home['host'] === $check['host'] ) ) {
    885885            /**
    886886             * Filters whether to block local HTTP API requests.
Note: See TracChangeset for help on using the changeset viewer.