Trackback and feed URIs weren't working when there was no trailing slash on the permalink structure. Thanks Kitty.

git-svn-id: https://develop.svn.wordpress.org/trunk@1274 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-05-14 08:47:01 +00:00
parent 31cf5b8871
commit 38ce416582
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);