Make WordPress Core


Ignore:
Timestamp:
09/17/2024 10:39:58 PM (20 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/ajax-actions.php

    r58416 r59039  
    35573557    $return = array();
    35583558
     3559    // Removes the script timeout limit by setting it to 0 allowing ample time for diff UI setup.
    35593560    if ( function_exists( 'set_time_limit' ) ) {
    35603561        set_time_limit( 0 );
Note: See TracChangeset for help on using the changeset viewer.