Make WordPress Core


Ignore:
Timestamp:
02/07/2023 01:26:46 PM (20 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/update-core.php

    r55225 r55258  
    10541054    global $wp_filesystem, $_old_files, $_old_requests_files, $_new_bundled_files, $wpdb;
    10551055
    1056     set_time_limit( 300 );
     1056    if ( function_exists( 'set_time_limit' ) ) {
     1057        set_time_limit( 300 );
     1058    }
    10571059
    10581060    /*
Note: See TracChangeset for help on using the changeset viewer.