From 5b9fd2d7e7d3cc07a2505a6e52c2155fcb7e2649 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 16 Dec 2019 12:37:06 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-admin/includes/network.php`. Props ataurr. Fixes #48994. Built from https://develop.svn.wordpress.org/trunk@46963 git-svn-id: http://core.svn.wordpress.org/trunk@46763 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/network.php | 12 ++++++------ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/network.php b/wp-admin/includes/network.php index 6f27b2888a..3f29c71b86 100644 --- a/wp-admin/includes/network.php +++ b/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 ) {

- +