Make WordPress Core

Ticket #46987: 46987.patch

File 46987.patch, 797 bytes (added by wpboss, 5 years ago)
  • src/wp-includes/functions.php

     
    70367036 * @param string $directory Full path of a directory.
    70377037 * @param int    $max_execution_time Maximum time to run before giving up. In seconds.
    70387038 *                                   The timeout is global and is measured from the moment WordPress started to load.
    7039  * @return int|false|null Size in MB if a valid directory. False if not. Null if timeout.
     7039 * @return int|false|null Size in bytes if a valid directory. False if not. Null if timeout.
    70407040 */
    70417041function get_dirsize( $directory, $max_execution_time = null ) {
    70427042        $dirsize = get_transient( 'dirsize_cache' );