diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps-index.php b/src/wp-includes/sitemaps/class-wp-sitemaps-index.php
index d558870bb0..4ec1b07d92 100644
|
a
|
b
|
class WP_Sitemaps_Index { |
| 75 | 75 | global $wp_rewrite; |
| 76 | 76 | |
| 77 | 77 | if ( ! $wp_rewrite->using_permalinks() ) { |
| 78 | | return add_query_arg( 'sitemap', 'index', home_url( '/' ) ); |
| | 78 | return home_url( '/?sitemap=index' ); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | return home_url( '/wp-sitemap.xml' ); |
diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps-renderer.php b/src/wp-includes/sitemaps/class-wp-sitemaps-renderer.php
index c313585d22..0069b11126 100644
|
a
|
b
|
class WP_Sitemaps_Renderer { |
| 67 | 67 | $sitemap_url = home_url( '/wp-sitemap.xsl' ); |
| 68 | 68 | |
| 69 | 69 | if ( ! $wp_rewrite->using_permalinks() ) { |
| 70 | | $sitemap_url = add_query_arg( 'sitemap-stylesheet', 'sitemap', home_url( '/' ) ); |
| | 70 | $sitemap_url = home_url( '/?sitemap-stylesheet=sitemap' ); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
| … |
… |
class WP_Sitemaps_Renderer { |
| 98 | 98 | $sitemap_url = home_url( '/wp-sitemap-index.xsl' ); |
| 99 | 99 | |
| 100 | 100 | if ( ! $wp_rewrite->using_permalinks() ) { |
| 101 | | $sitemap_url = add_query_arg( 'sitemap-stylesheet', 'index', home_url( '/' ) ); |
| | 101 | $sitemap_url = home_url( '/?sitemap-stylesheet=index' ); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |