From 9f98ec2941284eeb453a4ddc01aa36bd5665c572 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Fri, 14 May 2004 08:47:01 +0000 Subject: [PATCH] Trackback and feed URIs weren't working when there was no trailing slash on the permalink structure. Thanks Kitty. git-svn-id: http://svn.automattic.com/wordpress/trunk@1274 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 53318cb97d..b711c6225e 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1236,7 +1236,7 @@ function rewrite_rules($matches = '', $permalink_structure = '') { $match = str_replace($rewritecode, $rewritereplace, $match); $match = preg_replace('|[?]|', '', $match, 1); - $feedmatch = str_replace('?/?', '/', $match); + $feedmatch = trailingslashit(str_replace('?/?', '/', $match)); $trackbackmatch = $feedmatch; preg_match_all('/%.+?%/', $permalink_structure, $tokens);