Gallery XHTML validation fixes. props shelleyp. fixes #6461 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@7575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2008-03-30 16:41:43 +00:00
parent 88cbd04406
commit 5ab9ee6a8f
1 changed files with 2 additions and 2 deletions

View File

@ -324,7 +324,7 @@ function wp_get_attachment_image($attachment_id, $size='thumbnail', $icon = fals
$hwstring = image_hwstring($width, $height);
if ( is_array($size) )
$size = join('x', $size);
$html = '<img src="'.attribute_escape($src).'" '.$hwstring.'class="attachment-'.attribute_escape($size).'" />';
$html = '<img src="'.attribute_escape($src).'" '.$hwstring.'class="attachment-'.attribute_escape($size).'" alt="" />';
}
return $html;
@ -409,7 +409,7 @@ function gallery_shortcode($attr) {
}
$output .= "
<br style='clear: both;' >
<br style='clear: both;' />
</div>\n";
return $output;