Make WordPress Core

Changeset 48472


Ignore:
Timestamp:
07/14/2020 11:52:43 AM (6 years ago)
Author:
swissspidy
Message:

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

Props Chouby.
Fixes #50570.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php

    r48282 r48472  
    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
  • trunk/tests/phpunit/tests/sitemaps/sitemaps.php

    r48072 r48472  
    235235                        $expected,
    236236                        array(
    237                                 'loc' => home_url(),
     237                                'loc' => home_url( '/' ),
    238238                        )
    239239                );
Note: See TracChangeset for help on using the changeset viewer.