mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Docs: Various corrections and improvements relating to types used in inline documentation.
See #53399 git-svn-id: https://develop.svn.wordpress.org/trunk@52204 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -8134,13 +8134,13 @@ function get_dirsize( $directory, $max_execution_time = null ) {
|
||||
* @since 5.2.0 The `$max_execution_time` parameter was added.
|
||||
* @since 5.6.0 The `$directory_cache` parameter was added.
|
||||
*
|
||||
* @param string $directory Full path of a directory.
|
||||
* @param string|array $exclude Optional. Full path of a subdirectory to exclude from the total,
|
||||
* or array of paths. Expected without trailing slash(es).
|
||||
* @param int $max_execution_time Optional. Maximum time to run before giving up. In seconds.
|
||||
* The timeout is global and is measured from the moment
|
||||
* WordPress started to load.
|
||||
* @param array $directory_cache Optional. Array of cached directory paths.
|
||||
* @param string $directory Full path of a directory.
|
||||
* @param string|string[] $exclude Optional. Full path of a subdirectory to exclude from the total,
|
||||
* or array of paths. Expected without trailing slash(es).
|
||||
* @param int $max_execution_time Optional. Maximum time to run before giving up. In seconds.
|
||||
* The timeout is global and is measured from the moment
|
||||
* WordPress started to load.
|
||||
* @param array $directory_cache Optional. Array of cached directory paths.
|
||||
*
|
||||
* @return int|false|null Size in bytes if a valid directory. False if not. Null if timeout.
|
||||
*/
|
||||
@@ -8191,7 +8191,12 @@ function recurse_dirsize( $directory, $exclude = null, $max_execution_time = nul
|
||||
*
|
||||
* @since 5.6.0
|
||||
*
|
||||
* @param int|false $space_used The amount of used space, in bytes. Default false.
|
||||
* @param int|false $space_used The amount of used space, in bytes. Default false.
|
||||
* @param string $directory Full path of a directory.
|
||||
* @param string|string[]|null $exclude Full path of a subdirectory to exclude from the total,
|
||||
* or array of paths.
|
||||
* @param int $max_execution_time Maximum time to run before giving up. In seconds.
|
||||
* @param array $directory_cache Array of cached directory paths.
|
||||
*/
|
||||
$size = apply_filters( 'pre_recurse_dirsize', false, $directory, $exclude, $max_execution_time, $directory_cache );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user