mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 06:42:56 +02:00
Galleries: Avoid doubling up clearing br elements.
props drozdz. fixes #25537. Built from https://develop.svn.wordpress.org/trunk@27800 git-svn-id: http://core.svn.wordpress.org/trunk@27635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
502ac958e5
commit
e0e8203af0
@ -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