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
This commit is contained in:
ryan 2012-04-30 21:22:58 +00:00
parent 32c8d41cde
commit 0d99cf31a6
1 changed files with 1 additions and 1 deletions

View File

@ -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