Commit 5765a2eb1b for wordpress.org
commit 5765a2eb1b99d110a74c86a1c00e3616877707f3
Author: Sergey Biryukov <sergeybiryukov.ru@gmail.com>
Date: Thu Jan 16 12:04:23 2025 +0000
Coding Standards: Use strict comparison in `wp_xmlrpc_server::_multisite_getUsersBlogs()`.
Follow-up to [https://mu.trac.wordpress.org/changeset/1218 mu:1218], [12852].
Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@59632
git-svn-id: http://core.svn.wordpress.org/trunk@58995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php
index 2141f21e59..527bf23966 100644
--- a/wp-includes/class-wp-xmlrpc-server.php
+++ b/wp-includes/class-wp-xmlrpc-server.php
@@ -4883,7 +4883,7 @@ class wp_xmlrpc_server extends IXR_Server {
return $blogs;
}
- if ( $_SERVER['HTTP_HOST'] == $domain && $_SERVER['REQUEST_URI'] == $path ) {
+ if ( $_SERVER['HTTP_HOST'] === $domain && $_SERVER['REQUEST_URI'] === $path ) {
return $blogs;
} else {
foreach ( (array) $blogs as $blog ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 95df70ac73..3c3d557def 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.8-alpha-59631';
+$wp_version = '6.8-alpha-59632';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.