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
This commit is contained in:
saxmatt 2004-05-14 08:47:01 +00:00
parent 223c4628ce
commit 9f98ec2941
1 changed files with 1 additions and 1 deletions

View File

@ -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);