Make WordPress Core

Ticket #50570: 50570.diff

File 50570.diff, 655 bytes (added by Chouby, 5 years ago)
  • src/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php

    diff --git a/src/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php b/src/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
    index 3ec20bf23f..233396b7f8 100644
    a b class WP_Sitemaps_Posts extends WP_Sitemaps_Provider { 
    101101                if ( 'page' === $post_type && 1 === $page_num && 'posts' === get_option( 'show_on_front' ) ) {
    102102                        // Extract the data needed for home URL to add to the array.
    103103                        $sitemap_entry = array(
    104                                 'loc' => home_url(),
     104                                'loc' => home_url( '/' ),
    105105                        );
    106106
    107107                        /**