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:
parent
96c73cc917
commit
3ce00adc38
|
@ -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