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

git-svn-id: https://develop.svn.wordpress.org/trunk@7575 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-03-30 16:41:43 +00:00
parent f12bcad806
commit 288211a88b
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;