Make WordPress Core


Ignore:
Timestamp:
02/07/2023 01:26:46 PM (3 years ago)
Author:
SergeyBiryukov
Message:

General: Check that set_time_limit() function is available before using it in core.

This avoids a fatal error if the function is disabled on certain environments.

Props theode, jokerrs, johnbillion, hellofromTonya, costdev, jrf, azaozz, SergeyBiryukov.
Fixes #55711.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/deprecated.php

    r55207 r55258  
    36603660    _deprecated_function( __FUNCTION__, '4.4.0', 'WP_Http' );
    36613661
    3662     @set_time_limit( 60 );
     3662    if ( function_exists( 'set_time_limit' ) ) {
     3663        @set_time_limit( 60 );
     3664    }
    36633665
    36643666    if ( $red > 5 )
Note: See TracChangeset for help on using the changeset viewer.