From 941682ef9f3d63b13a5a0395229bffce7ffb23d8 Mon Sep 17 00:00:00 2001 From: vraja-pro Date: Thu, 26 Oct 2023 09:59:20 +0200 Subject: [PATCH] updated yoast-sitemap-xsl value --- inc/sitemaps/class-sitemaps-router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/sitemaps/class-sitemaps-router.php b/inc/sitemaps/class-sitemaps-router.php index 60ed39ba975..3aa2e4e2479 100644 --- a/inc/sitemaps/class-sitemaps-router.php +++ b/inc/sitemaps/class-sitemaps-router.php @@ -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' ); } /** @@ -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; }