Use user_trailingslashit. Props Sam_a. fixes #6996 for 2.5

git-svn-id: https://develop.svn.wordpress.org/branches/2.5@7954 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-05-19 18:51:12 +00:00
parent 49b691ed95
commit 429ec2369a

View File

@ -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 ) {