From 3ce00adc38b20ac07ef0b1b663374af3f056b725 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 19 May 2008 18:51:28 +0000 Subject: [PATCH] Use user_trailingslashit. Props Sam_a. fixes #6996 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@7955 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 2ebe3483e..835c69f49 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -184,7 +184,7 @@ function get_attachment_link($id = false) { else $name = $object->post_name; if (strpos($parentlink, '?') === false) - $link = trailingslashit($parentlink) . $name . '/'; + $link = user_trailingslashit( trailingslashit($parentlink) . $name ); } if (! $link ) {