Skip to content

Commit 4366183

Browse files
Coding Standards: Use strict comparison in wp-includes/ms-load.php.
Follow-up to [12602], [12688], [12896], [27359], [37475]. Props aristath, poena, afercia, SergeyBiryukov. See #60700. git-svn-id: https://develop.svn.wordpress.org/trunk@57877 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e73db80 commit 4366183

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/wp-includes/ms-load.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ function ms_site_check() {
9292

9393
$blog = get_site();
9494

95-
if ( '1' == $blog->deleted ) {
95+
if ( '1' === $blog->deleted ) {
9696
if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) {
9797
return WP_CONTENT_DIR . '/blog-deleted.php';
9898
} else {
9999
wp_die( __( 'This site is no longer available.' ), '', array( 'response' => 410 ) );
100100
}
101101
}
102102

103-
if ( '2' == $blog->deleted ) {
103+
if ( '2' === $blog->deleted ) {
104104
if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) ) {
105105
return WP_CONTENT_DIR . '/blog-inactive.php';
106106
} else {
@@ -115,7 +115,7 @@ function ms_site_check() {
115115
}
116116
}
117117

118-
if ( '1' == $blog->archived || '1' == $blog->spam ) {
118+
if ( '1' === $blog->archived || '1' === $blog->spam ) {
119119
if ( file_exists( WP_CONTENT_DIR . '/blog-suspended.php' ) ) {
120120
return WP_CONTENT_DIR . '/blog-suspended.php';
121121
} else {
@@ -377,7 +377,7 @@ function ms_load_current_site_and_network( $domain, $path, $subdomain = false )
377377
}
378378

379379
// The network declared by the site trumps any constants.
380-
if ( $current_blog && $current_blog->site_id != $current_site->id ) {
380+
if ( $current_blog && (int) $current_blog->site_id !== $current_site->id ) {
381381
$current_site = WP_Network::get_instance( $current_blog->site_id );
382382
}
383383

0 commit comments

Comments
 (0)