Docs: Correct @return description for get_dirsize().
Props wpboss, tmatsuur. Fixes #46987. Built from https://develop.svn.wordpress.org/trunk@45249 git-svn-id: http://core.svn.wordpress.org/trunk@45058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -7036,7 +7036,7 @@ function wp_direct_php_update_button() {
|
||||
* @param string $directory Full path of a directory.
|
||||
* @param int $max_execution_time Maximum time to run before giving up. In seconds.
|
||||
* The timeout is global and is measured from the moment WordPress started to load.
|
||||
* @return int|false|null Size in MB if a valid directory. False if not. Null if timeout.
|
||||
* @return int|false|null Size in bytes if a valid directory. False if not. Null if timeout.
|
||||
*/
|
||||
function get_dirsize( $directory, $max_execution_time = null ) {
|
||||
$dirsize = get_transient( 'dirsize_cache' );
|
||||
|
||||
Reference in New Issue
Block a user