mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user