From 4fc511e7b34c1d8d2f8634d888a0dd50ef91b22d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 12 Nov 2008 23:04:43 +0000 Subject: [PATCH] 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 --- wp-includes/rewrite.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index f4623cc297..71d280287f 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -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', diff --git a/wp-includes/version.php b/wp-includes/version.php index 88be63b26e..648a9d57ac 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -15,6 +15,6 @@ $wp_version = '2.7-beta2-9638'; * * @global int $wp_db_version */ -$wp_db_version = 9300; +$wp_db_version = 9621; ?>