diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 06dd7b47ab..b0911f8cd7 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -757,8 +757,7 @@ function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false if ( !$link_text ) $link_text = $_post->post_title; - return "$link_text"; - + return apply_filters( 'wp_get_attachment_link', "$link_text", $id, $size, $permalink, $icon ); } /**