Site Health: Use home page for loopback test.

Use `home_url()` for asynchronous loopback test to ensure correct results on sites with WordPress installed elsewhere, for example WordPress in a sub-directory.

Props Levdbas.
Fixes #52547.


Built from https://develop.svn.wordpress.org/trunk@50381


git-svn-id: http://core.svn.wordpress.org/trunk@49992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Peter Wilson 2021-02-17 23:10:04 +00:00
parent 23ca4ed304
commit c6af819b3a
2 changed files with 2 additions and 2 deletions

View File

@ -2660,7 +2660,7 @@ class WP_Site_Health {
$headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) );
}
$url = site_url();
$url = home_url();
$r = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) );

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-beta3-50380';
$wp_version = '5.7-beta3-50381';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.