mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
Always set $link_text.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cba1eb5db4
commit
b6bce1e1f0
@ -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…
Reference in New Issue
Block a user