Make WordPress Core


Ignore:
Timestamp:
09/17/2024 10:39:58 PM (9 months ago)
Author:
jorbin
Message:

Bootstrap/Load: Ensure uses of set_time_limit are documented why.

set_time_limit can cause unexpected behavior so it general should be avoided. There are instances though where they should be used so those instances should be properly documented.

Props Rcrayno, ryan, kurtpayne, jorbin.
Fixes #21521. See #19487.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r58975 r59039  
    525525        $clear_destination = $args['clear_destination'];
    526526
     527        // Give the upgrade an additional 300 seconds(5 minutes) to ensure the install doesn't prematurely timeout having used up the maximum script execution time upacking and downloading in WP_Upgrader->run.
    527528        if ( function_exists( 'set_time_limit' ) ) {
    528529            set_time_limit( 300 );
Note: See TracChangeset for help on using the changeset viewer.