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:
parent
223c4628ce
commit
9f98ec2941
|
@ -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