From d8e029950cc89d59b442e15435185b27f8f07e76 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Thu, 4 Feb 2010 19:56:36 +0000 Subject: [PATCH] close dir in recurse_dirsize(), props ddebernardy, fixes #11749 git-svn-id: https://develop.svn.wordpress.org/trunk@12953 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/ms-functions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 4c90fc56f8..9b646ff54f 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -1608,10 +1608,8 @@ function recurse_dirsize( $directory ) { $size += filesize($path); } elseif (is_dir($path)) { $handlesize = recurse_dirsize($path); - if ($handlesize >= 0) + if ($handlesize > 0) $size += $handlesize; - else - return false; } } }