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:
parent
88cbd04406
commit
5ab9ee6a8f
|
@ -324,7 +324,7 @@ function wp_get_attachment_image($attachment_id, $size='thumbnail', $icon = fals
|
||||||
$hwstring = image_hwstring($width, $height);
|
$hwstring = image_hwstring($width, $height);
|
||||||
if ( is_array($size) )
|
if ( is_array($size) )
|
||||||
$size = join('x', $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;
|
return $html;
|
||||||
|
@ -409,7 +409,7 @@ function gallery_shortcode($attr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$output .= "
|
$output .= "
|
||||||
<br style='clear: both;' >
|
<br style='clear: both;' />
|
||||||
</div>\n";
|
</div>\n";
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
|
|
Loading…
Reference in New Issue