mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
Remove <br> elements for HTML5 galleries.
props obenland. fixes #27637, see #26697. Built from https://develop.svn.wordpress.org/trunk@27914 git-svn-id: http://core.svn.wordpress.org/trunk@27745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
158597a5e3
commit
079ddec045
@ -992,11 +992,12 @@ function gallery_shortcode( $attr ) {
|
||||
</{$captiontag}>";
|
||||
}
|
||||
$output .= "</{$itemtag}>";
|
||||
if ( $columns > 0 && ++$i % $columns == 0 )
|
||||
if ( ! $html5 && $columns > 0 && ++$i % $columns == 0 ) {
|
||||
$output .= '<br style="clear: both" />';
|
||||
}
|
||||
}
|
||||
|
||||
if ( $columns > 0 && $i % $columns !== 0 ) {
|
||||
if ( ! $html5 && $columns > 0 && $i % $columns !== 0 ) {
|
||||
$output .= "
|
||||
<br style='clear: both' />";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user