close dir in recurse_dirsize(), props ddebernardy, fixes #11749
git-svn-id: https://develop.svn.wordpress.org/trunk@12953 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b21acae7f0
commit
d8e029950c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user