Make WordPress Core

Ticket #11101: 11101.2.diff

File 11101.2.diff, 713 bytes (added by designsimply, 15 years ago)
  • wp-includes/media.php

     
    818818        $itemtag = tag_escape($itemtag);
    819819        $captiontag = tag_escape($captiontag);
    820820        $columns = intval($columns);
    821         $itemwidth = $columns > 0 ? floor(100/$columns) : 100;
     821        $itemwidth = $columns > 0 ? round(100/$columns,2) : 100;
    822822        $float = is_rtl() ? 'right' : 'left';
    823823
    824824        $selector = "gallery-{$instance}";
     
    14051405        require_once( ABSPATH . WPINC . '/class-oembed.php' );
    14061406        $oembed = _wp_oembed_get_object();
    14071407        $oembed->providers[$format] = array( $provider, $regex );
    1408 }
    1409  No newline at end of file
     1408}