Make WordPress Core

Changeset 55188


Ignore:
Timestamp:
02/02/2023 09:12:12 AM (21 months ago)
Author:
audrasjb
Message:

Themes: Increase HTTP timeout for Theme API requests.

This changeset modifies the HTTP request in themes_api() to use the same HTTP request timeout as in plugins_api(), which is 15 seconds, instead of a default value of 5 seconds.

Props ahortin, peterwilsoncc, dd32, costdev.
Fixes #57315.

File:
1 edited

Legend:

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

    r55149 r55188  
    556556
    557557        $http_args = array(
     558            'timeout'    => 15,
    558559            'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ),
    559560        );
Note: See TracChangeset for help on using the changeset viewer.