Skip to content

Commit 3c8c3fb

Browse files
committed
Requests: apply patch / PR 500
1 parent 086c96c commit 3c8c3fb

File tree

1 file changed

+2
-2
lines changed
  • src/wp-includes/Requests/Transport

1 file changed

+2
-2
lines changed

src/wp-includes/Requests/Transport/cURL.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ protected function setup_handle($url, $headers, $data, $options) {
361361
$data = '';
362362
}
363363
elseif (!is_string($data)) {
364-
$data = http_build_query($data, null, '&');
364+
$data = http_build_query($data, '', '&');
365365
}
366366
}
367367

@@ -546,7 +546,7 @@ protected static function format_get($url, $data) {
546546
$query = $url_parts['query'];
547547
}
548548

549-
$query .= '&' . http_build_query($data, null, '&');
549+
$query .= '&' . http_build_query($data, '', '&');
550550
$query = trim($query, '&');
551551

552552
if (empty($url_parts['query'])) {

0 commit comments

Comments
 (0)