From 80643d6ed99026b0889b607d6e3cc9b20a7588b4 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 28 Jan 2008 04:55:54 +0000 Subject: [PATCH] doubleval bytes. Props tellyworth. fixes #5246 git-svn-id: http://svn.automattic.com/wordpress/trunk@6669 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }