Make WordPress Core


Ignore:
Timestamp:
02/07/2023 01:26:46 PM (16 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-admin/includes/ajax-actions.php

    r55210 r55258  
    35293529
    35303530    $return = array();
    3531     set_time_limit( 0 );
     3531
     3532    if ( function_exists( 'set_time_limit' ) ) {
     3533        set_time_limit( 0 );
     3534    }
    35323535
    35333536    foreach ( $_REQUEST['compare'] as $compare_key ) {
Note: See TracChangeset for help on using the changeset viewer.