From b6bce1e1f04112561401638236b63a7897fde4f7 Mon Sep 17 00:00:00 2001 From: dd32 Date: Sat, 13 Feb 2010 11:12:47 +0000 Subject: [PATCH] Always set $link_text. git-svn-id: http://svn.automattic.com/wordpress/trunk@13110 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 3e8167076..8e1227303 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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) == '' )