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:
parent
f12bcad806
commit
288211a88b
|
@ -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