Use user_trailingslashit. Props Sam_a. fixes #6996 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7955 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a150c4d549
commit
1dbd76720f
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user