Skip to content

Commit 8671dfe

Browse files
committed
Sitemaps: Remove superfluous ? from rewrite rule.
Props szepeviktor. Fixes #63699. git-svn-id: https://develop.svn.wordpress.org/trunk@60458 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2802727 commit 8671dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wp-rewrite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ public function rewrite_rules() {
12881288
$favicon_rewrite = ( empty( $home_path['path'] ) || '/' === $home_path['path'] ) ? array( 'favicon\.ico$' => $this->index . '?favicon=1' ) : array();
12891289

12901290
// sitemap.xml -- only if installed at the root.
1291-
$sitemap_rewrite = ( empty( $home_path['path'] ) || '/' === $home_path['path'] ) ? array( 'sitemap\.xml' => $this->index . '??sitemap=index' ) : array();
1291+
$sitemap_rewrite = ( empty( $home_path['path'] ) || '/' === $home_path['path'] ) ? array( 'sitemap\.xml' => $this->index . '?sitemap=index' ) : array();
12921292

12931293
// Old feed and service files.
12941294
$deprecated_files = array(

0 commit comments

Comments
 (0)