From 9bb849b8bf2ee6f8d307aee4b465c39d6471f857 Mon Sep 17 00:00:00 2001 From: rboren Date: Fri, 6 Feb 2004 02:32:24 +0000 Subject: [PATCH] Make sure permalink has trailing slash before appending "trackback/" in trackback_url(). git-svn-id: http://svn.automattic.com/wordpress/trunk@838 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions-comment.php b/wp-includes/template-functions-comment.php index f62dbcc02..5f9e84ddc 100644 --- a/wp-includes/template-functions-comment.php +++ b/wp-includes/template-functions-comment.php @@ -260,7 +260,7 @@ function trackback_url($display = true) { $tb_url = $siteurl.'/wp-trackback.php/'.$id; if ('' != get_settings('permalink_structure')) { - $tb_url = get_permalink() . 'trackback/'; + $tb_url = trailingslashit(get_permalink()) . 'trackback/'; } if ($display) { @@ -290,4 +290,4 @@ function trackback_rdf($timezone = 0) { } } -?> \ No newline at end of file +?>