Don't escape anchor text as an attributein wp_get_attachment_link(). Props SergeyBiryukov. fixes #19282
git-svn-id: https://develop.svn.wordpress.org/trunk@20654 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0d53bba473
commit
ac3e71ac63
@ -1166,7 +1166,7 @@ function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals
|
|||||||
$post_title = esc_attr( $_post->post_title );
|
$post_title = esc_attr( $_post->post_title );
|
||||||
|
|
||||||
if ( $text )
|
if ( $text )
|
||||||
$link_text = esc_attr( $text );
|
$link_text = $text;
|
||||||
elseif ( $size && 'none' != $size )
|
elseif ( $size && 'none' != $size )
|
||||||
$link_text = wp_get_attachment_image( $id, $size, $icon );
|
$link_text = wp_get_attachment_image( $id, $size, $icon );
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user