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:
parent
d686c73525
commit
65007189cf
@ -996,8 +996,12 @@ function gallery_shortcode( $attr ) {
|
||||
$output .= '<br style="clear: both" />';
|
||||
}
|
||||
|
||||
if ( $columns > 0 && $i % $columns !== 0 ) {
|
||||
$output .= "
|
||||
<br style='clear: both' />";
|
||||
}
|
||||
|
||||
$output .= "
|
||||
<br style='clear: both;' />
|
||||
</div>\n";
|
||||
|
||||
return $output;
|
||||
|
Loading…
Reference in New Issue
Block a user