Make WordPress Core


Ignore:
Timestamp:
02/07/2023 01:26:46 PM (8 months 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/comment.php

    r55213 r55258  
    31123112
    31133113        if ( $pingback_server_url ) {
    3114             set_time_limit( 60 );
     3114            if ( function_exists( 'set_time_limit' ) ) {
     3115                set_time_limit( 60 );
     3116            }
     3117
    31153118            // Now, the RPC call.
    31163119            $pagelinkedfrom = get_permalink( $post );
Note: See TracChangeset for help on using the changeset viewer.