Make WordPress Core

Changeset 60458

Timestamp:
07/15/2025 08:21:01 AM (3 months ago)
Author:
swissspidy
Message:

Sitemaps: Remove superfluous ? from rewrite rule.

Props szepeviktor.
Fixes #63699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-rewrite.php

    r59258 r60458  
    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.
Note: See TracChangeset for help on using the changeset viewer.