Make sure permalink has trailing slash before appending "trackback/" in trackback_url().
git-svn-id: https://develop.svn.wordpress.org/trunk@838 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0c38a42653
commit
7e9584f828
@ -260,7 +260,7 @@ function trackback_url($display = true) {
|
|||||||
$tb_url = $siteurl.'/wp-trackback.php/'.$id;
|
$tb_url = $siteurl.'/wp-trackback.php/'.$id;
|
||||||
|
|
||||||
if ('' != get_settings('permalink_structure')) {
|
if ('' != get_settings('permalink_structure')) {
|
||||||
$tb_url = get_permalink() . 'trackback/';
|
$tb_url = trailingslashit(get_permalink()) . 'trackback/';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($display) {
|
if ($display) {
|
||||||
@ -290,4 +290,4 @@ function trackback_rdf($timezone = 0) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user