From 2a8f0cb9e04487889e4442eb6abad795dc7be155 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 16 Dec 2019 12:35:26 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-admin/includes/network.php`. Props ataurr. Fixes #48994. git-svn-id: https://develop.svn.wordpress.org/trunk@46963 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/network.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/includes/network.php b/src/wp-admin/includes/network.php index 6f27b2888a..3f29c71b86 100644 --- a/src/wp-admin/includes/network.php +++ b/src/wp-admin/includes/network.php @@ -34,7 +34,7 @@ function network_domain_check() { */ function allow_subdomain_install() { $domain = preg_replace( '|https?://([^/]+)|', '$1', get_option( 'home' ) ); - if ( parse_url( get_option( 'home' ), PHP_URL_PATH ) || 'localhost' == $domain || preg_match( '|^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$|', $domain ) ) { + if ( parse_url( get_option( 'home' ), PHP_URL_PATH ) || 'localhost' === $domain || preg_match( '|^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$|', $domain ) ) { return false; } @@ -256,7 +256,7 @@ function network_step1( $errors = false ) {

' . __( 'Warning:' ) . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '

'; } @@ -293,7 +293,7 @@ function network_step1( $errors = false ) {

- +