From ae0a2e7d248316bc4a743ddc4ce0a5d1825bc73d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 16 Oct 2008 20:00:11 +0000 Subject: [PATCH] wp_get_attachment_link filter. Props Viper007Bond. fixes #7448 git-svn-id: https://develop.svn.wordpress.org/trunk@9205 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-template.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ); } /**