Skip to content

Commit 06f2389

Browse files
author
Joost de Valk
committed
Always ignore config and xml-sitemap files.
1 parent 2831937 commit 06f2389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml-sitemap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
1818

19-
$ignore = array_merge( $ignore, array( '.', '..' ) );
19+
$ignore = array_merge( $ignore, array( '.', '..', 'config.php', 'xml-sitemap.php' ) );
2020

2121
if ( isset( $xsl ) && !empty( $xsl ) )
2222
echo '<?xml-stylesheet type="text/xsl" href="' . SITEMAP_DIR_URL . $xsl . '"?>' . "\n";

0 commit comments

Comments
 (0)