From 326bd23fd95adca33b9c73198f69472999c054ec Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 25 Mar 2024 17:19:17 +0000 Subject: [PATCH] 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 --- wp-includes/ms-load.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/ms-load.php b/wp-includes/ms-load.php index 661d6a9f93..0708bc4dcd 100644 --- a/wp-includes/ms-load.php +++ b/wp-includes/ms-load.php @@ -92,7 +92,7 @@ function ms_site_check() { $blog = get_site(); - if ( '1' == $blog->deleted ) { + if ( '1' === $blog->deleted ) { if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) { return WP_CONTENT_DIR . '/blog-deleted.php'; } 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' ) ) { return WP_CONTENT_DIR . '/blog-inactive.php'; } 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' ) ) { return WP_CONTENT_DIR . '/blog-suspended.php'; } 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. - 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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 963b58e3ff..fb6c70c180 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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.