diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
commit | 0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch) | |
tree | e139a90049b158d4eed892d1662ee7f5c358fa31 /wp-includes/ms-load.php | |
parent | Adding upstream version 6.5.5+dfsg1. (diff) | |
download | wordpress-upstream/6.6.1+dfsg1.tar.xz wordpress-upstream/6.6.1+dfsg1.zip |
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/ms-load.php')
-rw-r--r-- | wp-includes/ms-load.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wp-includes/ms-load.php b/wp-includes/ms-load.php index afac9b1..0708bc4 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 ); } @@ -497,7 +497,7 @@ function ms_not_installed( $domain, $path ) { $msg .= sprintf( /* translators: %s: Documentation URL. */ __( 'Read the <a href="%s" target="_blank">Debugging a WordPress Network</a> article. Some of the suggestions there may help you figure out what went wrong.' ), - __( 'https://wordpress.org/documentation/article/debugging-a-wordpress-network/' ) + __( 'https://developer.wordpress.org/advanced-administration/debug/debug-network/' ) ); $msg .= ' ' . __( 'If you are still stuck with this message, then check that your database contains the following tables:' ) . '</p><ul>'; foreach ( $wpdb->tables( 'global' ) as $t => $table ) { |