You appear to be a bot. Output may be restricted
Description
Adjust the args for the wp_remote_postWe're trying to avoid some common errors from cURL Error | Workaround
———————————- | ———– |
---|
Usage
$array = oik_remote::bw_adjust_args( $args, $url );
Parameters
- $args
- ( array ) required –
- $url
- ( string ) required –
Returns
array adjusted argsTO DO
Ensure we don't reduce the timeout time.Source
File name: oik/libs/class-oik-remote.phpLines:
1 to 7 of 7
static function bw_adjust_args( $args, $url ) { if ( self::are_you_local( $url ) ) { $args['sslverify'] = false; } $args['timeout'] = 15000; return $args; }View on GitHub View on Trac