From a8eb5801386065d6aeb79f293b44f88de7b2b0b8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 28 Jan 2008 04:55:54 +0000 Subject: [PATCH] doubleval bytes. Props tellyworth. fixes #5246 git-svn-id: https://develop.svn.wordpress.org/trunk@6669 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 980bd37bf8..a616711d65 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; }