mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-24 09:11:24 +01:00
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
|
else
|
||||||
$name = $object->post_name;
|
$name = $object->post_name;
|
||||||
if (strpos($parentlink, '?') === false)
|
if (strpos($parentlink, '?') === false)
|
||||||
$link = trailingslashit($parentlink) . $name . '/';
|
$link = user_trailingslashit( trailingslashit($parentlink) . $name );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $link ) {
|
if (! $link ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user