mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@57877 git-svn-id: http://core.svn.wordpress.org/trunk@57378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c7d9fc540e
commit
326bd23fd9
@ -92,7 +92,7 @@ function ms_site_check() {
|
|||||||
|
|
||||||
$blog = get_site();
|
$blog = get_site();
|
||||||
|
|
||||||
if ( '1' == $blog->deleted ) {
|
if ( '1' === $blog->deleted ) {
|
||||||
if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) {
|
if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) {
|
||||||
return WP_CONTENT_DIR . '/blog-deleted.php';
|
return WP_CONTENT_DIR . '/blog-deleted.php';
|
||||||
} else {
|
} else {
|
||||||
@ -100,7 +100,7 @@ function ms_site_check() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( '2' == $blog->deleted ) {
|
if ( '2' === $blog->deleted ) {
|
||||||
if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) ) {
|
if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) ) {
|
||||||
return WP_CONTENT_DIR . '/blog-inactive.php';
|
return WP_CONTENT_DIR . '/blog-inactive.php';
|
||||||
} else {
|
} else {
|
||||||
@ -115,7 +115,7 @@ function ms_site_check() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( '1' == $blog->archived || '1' == $blog->spam ) {
|
if ( '1' === $blog->archived || '1' === $blog->spam ) {
|
||||||
if ( file_exists( WP_CONTENT_DIR . '/blog-suspended.php' ) ) {
|
if ( file_exists( WP_CONTENT_DIR . '/blog-suspended.php' ) ) {
|
||||||
return WP_CONTENT_DIR . '/blog-suspended.php';
|
return WP_CONTENT_DIR . '/blog-suspended.php';
|
||||||
} else {
|
} else {
|
||||||
@ -377,7 +377,7 @@ function ms_load_current_site_and_network( $domain, $path, $subdomain = false )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The network declared by the site trumps any constants.
|
// The network declared by the site trumps any constants.
|
||||||
if ( $current_blog && $current_blog->site_id != $current_site->id ) {
|
if ( $current_blog && (int) $current_blog->site_id !== $current_site->id ) {
|
||||||
$current_site = WP_Network::get_instance( $current_blog->site_id );
|
$current_site = WP_Network::get_instance( $current_blog->site_id );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.6-alpha-57876';
|
$wp_version = '6.6-alpha-57877';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user