Changeset 6669

Show
Ignore:
Timestamp:
01/28/08 04:55:54 (10 months ago)
Author:
ryan
Message:

doubleval bytes. Props tellyworth. fixes #5246

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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