mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
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:
parent
49b691ed95
commit
429ec2369a
@ -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…
x
Reference in New Issue
Block a user