wp_get_attachment_link filter. Props Viper007Bond. fixes #7448
git-svn-id: https://develop.svn.wordpress.org/trunk@9205 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
84435c6ed8
commit
ae0a2e7d24
@ -757,8 +757,7 @@ function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false
|
||||
if ( !$link_text )
|
||||
$link_text = $_post->post_title;
|
||||
|
||||
return "<a href='$url' title='$post_title'>$link_text</a>";
|
||||
|
||||
return apply_filters( 'wp_get_attachment_link', "<a href='$url' title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user