Changeset 51911 for trunk/src/wp-includes/functions.php
- Timestamp:
- 10/15/2021 10:52:43 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r51910 r51911 8121 8121 * @param string|array $exclude Optional. Full path of a subdirectory to exclude from the total, 8122 8122 * or array of paths. Expected without trailing slash(es). 8123 * @param int $max_execution_time Maximum time to run before giving up. In seconds. The timeout is global 8124 * and is measured from the moment WordPress started to load. 8123 * @param int $max_execution_time Optional. Maximum time to run before giving up. In seconds. 8124 * The timeout is global and is measured from the moment 8125 * WordPress started to load. 8125 8126 * @param array $directory_cache Optional. Array of cached directory paths. 8126 8127 * … … 8195 8196 } 8196 8197 8197 if ( $max_execution_time > 0 && microtime( true ) - WP_START_TIMESTAMP > $max_execution_time ) { 8198 if ( $max_execution_time > 0 && 8199 ( microtime( true ) - WP_START_TIMESTAMP ) > $max_execution_time 8200 ) { 8198 8201 // Time exceeded. Give up instead of risking a fatal timeout. 8199 8202 $size = null; … … 8204 8207 closedir( $handle ); 8205 8208 } 8209 } 8210 8211 if ( ! is_array( $directory_cache ) ) { 8212 $directory_cache = array(); 8206 8213 } 8207 8214
Note: See TracChangeset
for help on using the changeset viewer.