Make WordPress Core

Changeset 6669


Ignore:
Timestamp:
01/28/2008 04:55:54 AM (17 years ago)
Author:
ryan
Message:

doubleval bytes. Props tellyworth. fixes #5246

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r6592 r6669  
    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
Note: See TracChangeset for help on using the changeset viewer.