close dir in recurse_dirsize(), props ddebernardy, fixes #11749
git-svn-id: http://svn.automattic.com/wordpress/trunk@12953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
603d6cb6df
commit
297f3e3757
|
@ -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