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/update-core.php

    r58975 r59039  
    963963
    964964    if ( function_exists( 'set_time_limit' ) ) {
     965        // Gives core update script time an additional 300 seconds(5 minutes) to finish updating large files or run on slower servers.
    965966        set_time_limit( 300 );
    966967    }
Note: See TracChangeset for help on using the changeset viewer.