Always set $link_text.
git-svn-id: https://develop.svn.wordpress.org/trunk@13110 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
04a1493757
commit
f5c9054956
@ -944,6 +944,8 @@ function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false
|
||||
$link_text = esc_attr($text);
|
||||
} elseif ( ( is_int($size) && $size != 0 ) or ( is_string($size) && $size != 'none' ) or $size != false ) {
|
||||
$link_text = wp_get_attachment_image($id, $size, $icon);
|
||||
} else {
|
||||
$link_text = '';
|
||||
}
|
||||
|
||||
if( trim($link_text) == '' )
|
||||
|
Loading…
x
Reference in New Issue
Block a user