Skip to content

Commit

Permalink
updated yoast-sitemap-xsl value
Browse files Browse the repository at this point in the history
  • Loading branch information
vraja-pro committed Oct 26, 2023
1 parent 3832b1b commit 941682e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/sitemaps/class-sitemaps-router.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct() {
public function add_rewrite_rules( $dynamic_rewrites ) {
$dynamic_rewrites->add_rule( 'sitemap_index\.xml$', 'index.php?sitemap=1', 'top' );
$dynamic_rewrites->add_rule( '([^/]+?)-sitemap([0-9]+)?\.xml$', 'index.php?sitemap=$matches[1]&sitemap_n=$matches[2]', 'top' );
$dynamic_rewrites->add_rule( '([a-z]+)?-?sitemap\.xsl$', 'index.php?xsl=$matches[1]', 'top' );
$dynamic_rewrites->add_rule( '([a-z]+)?-?sitemap\.xsl$', 'index.php?yoast-sitemap-xsl=$matches[1]', 'top' );
}

/**
Expand All @@ -51,7 +51,7 @@ public function add_rewrite_rules( $dynamic_rewrites ) {
public function add_query_vars( $query_vars ) {
$query_vars[] = 'sitemap';
$query_vars[] = 'sitemap_n';
$query_vars[] = 'xsl';
$query_vars[] = 'yoast-sitemap-xsl';

return $query_vars;
}
Expand Down

0 comments on commit 941682e

Please sign in to comment.