mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Coding Standards: Use strict comparison in wp-includes/class-http.php.
Follow-up to [10625], [10864], [13274], [29661], [33748], [47508], [47808]. See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@51877 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -881,7 +881,7 @@ class WP_Http {
|
||||
$home = parse_url( get_option( 'siteurl' ) );
|
||||
|
||||
// Don't block requests back to ourselves by default.
|
||||
if ( 'localhost' === $check['host'] || ( isset( $home['host'] ) && $home['host'] == $check['host'] ) ) {
|
||||
if ( 'localhost' === $check['host'] || ( isset( $home['host'] ) && $home['host'] === $check['host'] ) ) {
|
||||
/**
|
||||
* Filters whether to block local HTTP API requests.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user