From 738904e9966f4d6a0d7f73b8090f3465a5539260 Mon Sep 17 00:00:00 2001 From: westi Date: Mon, 19 Sep 2011 12:15:43 +0000 Subject: [PATCH] Escape the dot so that it only matches dot any not any character in the old feed files redirect. Bump the db version so the rules regenerate. See #18384 git-svn-id: http://svn.automattic.com/wordpress/trunk@18715 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 a7349abc61..ae4bd8a90b 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -1487,7 +1487,7 @@ class WP_Rewrite { $robots_rewrite = ( empty( $home_path['path'] ) || '/' == $home_path['path'] ) ? array( 'robots\.txt$' => $this->index . '?robots=1' ) : array(); // Old feed files - $old_feed_files = array( '.*wp-(atom|rdf|rss|rss2|feed|commentsrss2).php$' => $this->index . '?feed=old' ); + $old_feed_files = array( '.*wp-(atom|rdf|rss|rss2|feed|commentsrss2)\.php$' => $this->index . '?feed=old' ); // Registration rules $registration_pages = array(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 76b76f423e..db53538e74 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -11,7 +11,7 @@ $wp_version = '3.3-aortic-dissection'; * * @global int $wp_db_version */ -$wp_db_version = 18541; +$wp_db_version = 18715; /** * Holds the TinyMCE version