mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-08 11:10:03 +00:00
Escape dot in robots rewrite rule. Props Jean-LucfromBrussels and DD32. fixes #8176
git-svn-id: https://develop.svn.wordpress.org/trunk@9650 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1518,7 +1518,7 @@ class WP_Rewrite {
|
||||
}
|
||||
|
||||
// robots.txt
|
||||
$robots_rewrite = array('robots.txt$' => $this->index . '?robots=1');
|
||||
$robots_rewrite = array('robots\.txt$' => $this->index . '?robots=1');
|
||||
|
||||
//Default Feed rules - These are require to allow for the direct access files to work with permalink structure starting with %category%
|
||||
$default_feeds = array( '.*wp-atom.php$' => $this->index .'?feed=atom',
|
||||
|
||||
Reference in New Issue
Block a user