Changeset 56174 for trunk/src/wp-admin/includes/class-wp-debug-data.php
- Timestamp:
- 07/09/2023 07:50:52 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r56079 r56174 1620 1620 } 1621 1621 1622 // The max_execution_time defaults to 0 when PHP runs from cli. 1623 // We still want to limit it below. 1622 /* 1623 * The max_execution_time defaults to 0 when PHP runs from cli. 1624 * We still want to limit it below. 1625 */ 1624 1626 if ( empty( $max_execution_time ) ) { 1625 1627 $max_execution_time = 30; // 30 seconds. … … 1627 1629 1628 1630 if ( $max_execution_time > 20 ) { 1629 // If the max_execution_time is set to lower than 20 seconds, reduce it a bit to prevent 1630 // edge-case timeouts that may happen after the size loop has finished running. 1631 /* 1632 * If the max_execution_time is set to lower than 20 seconds, reduce it a bit to prevent 1633 * edge-case timeouts that may happen after the size loop has finished running. 1634 */ 1631 1635 $max_execution_time -= 2; 1632 1636 } 1633 1637 1634 // Go through the various installation directories and calculate their sizes. 1635 // No trailing slashes. 1638 /* 1639 * Go through the various installation directories and calculate their sizes. 1640 * No trailing slashes. 1641 */ 1636 1642 $paths = array( 1637 1643 'wordpress_size' => untrailingslashit( ABSPATH ),
Note: See TracChangeset
for help on using the changeset viewer.