diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 980bd37bf..a616711d6 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -103,8 +103,10 @@ function size_format( $bytes, $decimals = null ) { ); foreach ( $quant as $unit => $mag ) - if ( intval( $bytes ) >= $mag ) + if ( doubleval($bytes) >= $mag ) return number_format_i18n( $bytes / $mag, $decimals ) . ' ' . $unit; + + return false; }