From 0d99cf31a605ca1ffc8ba726fe5963b9bffc2e9c Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 30 Apr 2012 21:22:58 +0000 Subject: [PATCH] Don't escape anchor text as an attributein wp_get_attachment_link(). Props SergeyBiryukov. fixes #19282 git-svn-id: http://svn.automattic.com/wordpress/trunk@20654 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 1cbf2539eb..11b9f093f1 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1166,7 +1166,7 @@ function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals $post_title = esc_attr( $_post->post_title ); if ( $text ) - $link_text = esc_attr( $text ); + $link_text = $text; elseif ( $size && 'none' != $size ) $link_text = wp_get_attachment_image( $id, $size, $icon ); else