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
This commit is contained in:
ryan 2008-05-19 18:51:28 +00:00
parent 96c73cc917
commit 3ce00adc38
1 changed files with 1 additions and 1 deletions

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