wp_get_attachment_link filter. Props Viper007Bond. fixes #7448
git-svn-id: http://svn.automattic.com/wordpress/trunk@9205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c946b75953
commit
42a83b4ebc
|
@ -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 );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue