Galleries: Avoid doubling up clearing br elements.

props drozdz.
fixes #25537.


git-svn-id: https://develop.svn.wordpress.org/trunk@27800 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-03-28 02:40:47 +00:00
parent d686c73525
commit 65007189cf

View File

@ -996,8 +996,12 @@ function gallery_shortcode( $attr ) {
$output .= '<br style="clear: both" />'; $output .= '<br style="clear: both" />';
} }
if ( $columns > 0 && $i % $columns !== 0 ) {
$output .= "
<br style='clear: both' />";
}
$output .= " $output .= "
<br style='clear: both;' />
</div>\n"; </div>\n";
return $output; return $output;