Changeset 49629 for trunk/src/wp-includes/functions.php
- Timestamp:
- 11/17/2020 03:42:57 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r49628 r49629 7625 7625 */ 7626 7626 function recurse_dirsize( $directory, $exclude = null, $max_execution_time = null, &$directory_cache = null ) { 7627 $size = 0;7628 7629 7627 $directory = untrailingslashit( $directory ); 7630 7628 $cache_path = untrailingslashit( str_replace( ABSPATH, '', $directory ) ); … … 7675 7673 * @since 5.6.0 7676 7674 * 7677 * @param int|false $space_used The amount of used space, in bytes. Default 0.7675 * @param int|false $space_used The amount of used space, in bytes. Default false. 7678 7676 */ 7679 $size = apply_filters( 'calculate_current_dirsize', $size, $directory, $exclude, $max_execution_time, $directory_cache ); 7680 7681 if ( 0 === $size ) { 7677 $size = apply_filters( 'pre_recurse_dirsize', false, $directory, $exclude, $max_execution_time, $directory_cache ); 7678 7679 if ( false === $size ) { 7680 $size = 0; 7681 7682 7682 $handle = opendir( $directory ); 7683 7683 if ( $handle ) { … … 7704 7704 } 7705 7705 } 7706 7706 7707 $directory_cache[ $cache_path ] = $size; 7707 7708
Note: See TracChangeset
for help on using the changeset viewer.