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:
parent
31cf5b8871
commit
38ce416582
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user