Make WordPress Core

Changeset 59291


Ignore:
Timestamp:
10/25/2024 08:24:08 PM (7 months ago)
Author:
SergeyBiryukov
Message:

Docs: Adjust comments about set_time_limit() per the documentation standards.

Includes splitting long comments into multiple lines and moving a few comments above the function_exists() check for more consistent placement.

Follow-up to [59039], [59288].

See #62281.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r59288 r59291  
    35573557    $return = array();
    35583558
     3559    // Increase the script timeout limit to allow ample time for diff UI setup.
    35593560    if ( function_exists( 'set_time_limit' ) ) {
    3560         // Increase the script timeout limit to allow ample time for diff UI setup.
    35613561        set_time_limit( 5 * MINUTE_IN_SECONDS );
    35623562    }
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r59257 r59291  
    526526        $clear_destination = $args['clear_destination'];
    527527
    528         // 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.
     528        /*
     529         * Give the upgrade an additional 300 seconds (5 minutes) to ensure the install
     530         * doesn't prematurely timeout having used up the maximum script execution time
     531         * upacking and downloading in WP_Upgrader->run().
     532         */
    529533        if ( function_exists( 'set_time_limit' ) ) {
    530534            set_time_limit( 300 );
  • trunk/src/wp-admin/includes/update-core.php

    r59182 r59291  
    971971    global $wp_filesystem, $_old_files, $_old_requests_files, $_new_bundled_files, $wpdb;
    972972
     973    /*
     974     * Give core update script an additional 300 seconds (5 minutes)
     975     * to finish updating large files when running on slower servers.
     976     */
    973977    if ( function_exists( 'set_time_limit' ) ) {
    974         // Gives core update script time an additional 300 seconds(5 minutes) to finish updating large files or run on slower servers.
    975978        set_time_limit( 300 );
    976979    }
  • trunk/src/wp-includes/class-pop3.php

    r59039 r59291  
    6060            settype($timeout,"integer");
    6161            $this->TIMEOUT = $timeout;
     62            // Extend POP3 request timeout to the specified TIMEOUT property.
    6263            if(function_exists("set_time_limit")){
    63                 // Extends POP3 request timeout to specified TIMEOUT property.
    6464                set_time_limit($timeout);
    6565            }
     
    7676
    7777    function update_timer () {
     78        // Extend POP3 request timeout to the specified TIMEOUT property.
    7879        if(function_exists("set_time_limit")){
    79             // Allows additional extension of POP3 request timeout to specified TIMEOUT property when update_timer is called.
    8080            set_time_limit($this->TIMEOUT);
    8181        }
  • trunk/src/wp-includes/comment.php

    r59267 r59291  
    31213121
    31223122        if ( $pingback_server_url ) {
     3123            // Allow an additional 60 seconds for each pingback to complete.
    31233124            if ( function_exists( 'set_time_limit' ) ) {
    3124                 // Allows an additional 60 seconds for each pingback to complete.
    31253125                set_time_limit( 60 );
    31263126            }
  • trunk/src/wp-includes/deprecated.php

    r59198 r59291  
    36743674    _deprecated_function( __FUNCTION__, '4.4.0', 'WP_Http' );
    36753675
    3676     // Adds an additional 60 seconds to the script timeout to ensure the remote request has enough time.
     3676    // Add 60 seconds to the script timeout to ensure the remote request has enough time.
    36773677    if ( function_exists( 'set_time_limit' ) ) {
    36783678        @set_time_limit( 60 );
Note: See TracChangeset for help on using the changeset viewer.