use homeurl(), props PeteMall, see #9008

git-svn-id: https://develop.svn.wordpress.org/trunk@14429 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick
2010-05-04 00:28:29 +00:00
parent 56e95f24c5
commit c2b89e7330
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ function get_attachment_link($id = false) {
}
if ( ! $link )
$link = trailingslashit(get_bloginfo('url')) . "?attachment_id=$id";
$link = home_url( "/?attachment_id=$id" );
return apply_filters('attachment_link', $link, $id);
}