mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-04 03:51:38 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user