From 7757fe0b0c495fff373c145726eb51be0e6c840b Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 14 Jul 2020 11:54:06 +0000 Subject: [PATCH] Sitemaps: Add missing slash when calling `home_url()` for consistency. Props Chouby. Fixes #50570. Built from https://develop.svn.wordpress.org/trunk@48472 git-svn-id: http://core.svn.wordpress.org/trunk@48241 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php b/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php index 3ec20bf23f..233396b7f8 100644 --- a/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php +++ b/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php @@ -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( '/' ), ); /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 4382f05ea1..e02b2ced6b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-beta1-48471'; +$wp_version = '5.5-beta1-48472'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.