Sitemaps: Add missing slash when calling home_url() for consistency.

Props Chouby.
Fixes #50570.

git-svn-id: https://develop.svn.wordpress.org/trunk@48472 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2020-07-14 11:52:43 +00:00
parent 649b7aae92
commit 585f623b4d
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ class WP_Sitemaps_Posts extends WP_Sitemaps_Provider {
if ( 'page' === $post_type && 1 === $page_num && 'posts' === get_option( 'show_on_front' ) ) {
// Extract the data needed for home URL to add to the array.
$sitemap_entry = array(
'loc' => home_url(),
'loc' => home_url( '/' ),
);
/**

View File

@ -234,7 +234,7 @@ class Test_Sitemaps extends WP_UnitTestCase {
array_unshift(
$expected,
array(
'loc' => home_url(),
'loc' => home_url( '/' ),
)
);