8901functionget_dirsize($directory,$max_execution_time=null){89028903/*8904 * Exclude individual site directories from the total when checking the main site of a network,8905 * as they are subdirectories and should not be counted.8906 */8907if(is_multisite()&&is_main_site()){8908$size=recurse_dirsize($directory,$directory.'/sites',$max_execution_time);8909}else{8910$size=recurse_dirsize($directory,null,$max_execution_time);8911}89128913return$size;8914}
History
Introduced in 5.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
5.2.0
$max_execution_time parameter added.from the docblock
MU (3.0.0)
MU (3.0.0)from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.