Make WordPress Core

Ticket #5246: size_format_double-r6350.patch

File size_format_double-r6350.patch, 457 bytes (added by tellyworth, 19 years ago)

simpler patch with doubleval()

  • wordpress/wp-includes/functions.php

     
    103103        );
    104104
    105105        foreach ( $quant as $unit => $mag )
    106                 if ( intval( $bytes ) >= $mag )
     106                if ( doubleval($bytes) >= $mag )
    107107                        return number_format_i18n( $bytes / $mag, $decimals ) . ' ' . $unit;
     108
     109        return false;
    108110}
    109111
    110112