Make WordPress Core


Ignore:
Timestamp:
09/17/2024 10:39:58 PM (6 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-includes/class-pop3.php

    r55305 r59039  
    6161            $this->TIMEOUT = $timeout;
    6262            if(function_exists("set_time_limit")){
     63                // Extends POP3 request timeout to specified TIMEOUT property.
    6364                set_time_limit($timeout);
    6465            }
     
    7677    function update_timer () {
    7778        if(function_exists("set_time_limit")){
     79            // Allows additional extension of POP3 request timeout to specified TIMEOUT property when update_timer is called.
    7880            set_time_limit($this->TIMEOUT);
    7981        }
Note: See TracChangeset for help on using the changeset viewer.