Skip to content

Commit e007915

Browse files
committed
code clean up
1 parent 312fb8f commit e007915

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

inc/sitemaps/class-sitemaps-router.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,6 @@ public function __construct() {
2828
add_action( 'template_redirect', [ $this, 'template_redirect' ], 0 );
2929
}
3030

31-
// Add custom rewrite rules using the generate_rewrite_rules action
32-
public function custom_rewrite_rules( $rules ) {
33-
$new_rules = [
34-
'sitemap_index\.xml$' => 'index.php?sitemap=1',
35-
'([^/]+?)-sitemap([0-9]+)?\.xml$' => 'index.php?sitemap=$matches[1]&sitemap_n=$matches[2]',
36-
'([a-z]+)?-?sitemap\.xsl$' => 'index.php?yoast-sitemap-xsl=$matches[1]',
37-
];
38-
39-
return ( $new_rules + $rules );
40-
}
41-
4231
/**
4332
* Adds rewrite routes for sitemaps.
4433
*

0 commit comments

Comments
 (0)