Decrease paypal request timeout so failed requests to not take too long
Closes #14546
This commit is contained in:
parent
3ef5ad2565
commit
f8781b9552
|
@ -574,7 +574,7 @@ class WC_REST_System_Status_Controller extends WC_REST_Controller {
|
|||
|
||||
// Test POST requests
|
||||
$post_response = wp_safe_remote_post( 'https://www.paypal.com/cgi-bin/webscr', array(
|
||||
'timeout' => 60,
|
||||
'timeout' => 10,
|
||||
'user-agent' => 'WooCommerce/' . WC()->version,
|
||||
'httpversion' => '1.1',
|
||||
'body' => array(
|
||||
|
|
Loading…
Reference in New Issue