Make WordPress Core

Changeset 27914


Ignore:
Timestamp:
04/02/2014 09:49:38 PM (11 years ago)
Author:
nacin
Message:

Remove <br> elements for HTML5 galleries.

props obenland.
fixes #27637, see #26697.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r27871 r27914  
    993993        }
    994994        $output .= "</{$itemtag}>";
    995         if ( $columns > 0 && ++$i % $columns == 0 )
     995        if ( ! $html5 && $columns > 0 && ++$i % $columns == 0 ) {
    996996            $output .= '<br style="clear: both" />';
    997     }
    998 
    999     if ( $columns > 0 && $i % $columns !== 0 ) {
     997        }
     998    }
     999
     1000    if ( ! $html5 && $columns > 0 && $i % $columns !== 0 ) {
    10001001        $output .= "
    10011002            <br style='clear: both' />";
Note: See TracChangeset for help on using the changeset viewer.