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:
Ryan Boren 2008-10-16 20:00:11 +00:00
parent 84435c6ed8
commit ae0a2e7d24
1 changed files with 1 additions and 2 deletions

View File

@ -757,8 +757,7 @@ function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false
if ( !$link_text ) if ( !$link_text )
$link_text = $_post->post_title; $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 );
} }
/** /**